Simple Question (Direct)
Simple Question
Q3876181
P19
Q56061
USER
Which administrative territory was Nicola Damiani born at ?
(Q3876181,P19,c(Q56061))
action filter_type
action find
entity Q3876181
relation P19
type Q56061
['Q3876181', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q3876181 property:P19 ?z }
Nicola Damiani
action filter_type
action find
entity Nicola Damiani
relation place of birth
type administrative territorial entity
['Nicola Damiani', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Nicola_Damiani property:place_of_birth ?z }
[]
administrative territorial entity
Q3519
SYSTEM
Bari
Q3519
(Q3876181,P19,c(Q56061))
action filter_type
action find
entity Q3876181
relation P19
type Q56061
Nicola Damiani was born in [ANSWER]
['Q3876181', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q56061 . resource:Q3876181 property:P19 ?z }
Bari
Nicola Damiani was born in Bari
Bari
action filter_type
action find
entity Nicola Damiani
relation place of birth
type administrative territorial entity
['Nicola Damiani', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Nicola_Damiani property:place_of_birth ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3519
P190
Q515
USER
Which cities are sister towns of that administrative territory ?
(Q3519,P190,c(Q515))
action filter_type
action find
entity Q3519
relation P190
type Q515
['Q3519', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q3519 property:P190 ?u . ?u rdf:type ontology:Q515 }
Bari
action filter_type
action find
entity Bari
relation sister city
type city
['Bari', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:Bari property:sister_city ?u . ?u rdf:type ontology:city }
[]
city
Q25475 Q10389 Q52607
SYSTEM
Batumi, Bandung, Mar del Plata
Q25475 Q10389 Q52607
(Q3519,P190,c(Q515))
action filter_type
action find
entity Q3519
relation P190
type Q515
[ANSWERS] are sister towns of that administrative territory
['Q3519', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q3519 property:P190 ?u . ?u rdf:type ontology:Q515 }
Batumi Bandung Mar del Plata
Batumi, Bandung and Mar del Plata are sister towns of that administrative territory
Batumi Bandung Mar del Plata
action filter_type
action find
entity Bari
relation sister city
type city
['Bari', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:Bari property:sister_city ?u . ?u rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q25475 Q10389 Q52607
P20
Q502895
USER
Which people have those cities as the area of death ?
(c(Q502895),P20,Q25475) (c(Q502895),P20,Q10389) (c(Q502895),P20,Q52607)
action filter_type
action find_reverse
entity prev_answer
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q25475'] [{'concept': 'Q502895'}, 'P20', 'Q10389'] [{'concept': 'Q502895'}, 'P20', 'Q52607']
SELECT DISTINCT ?p WHERE { ?p property:P20 ?b . ?p rdf:type ontology:Q502895 . VALUES ( ?b ) { ( resource:Q25475 ) ( resource:Q10389 ) ( resource:Q52607 ) } }
Batumi Bandung Mar del Plata
action filter_type
action find_reverse
entity prev_answer
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Batumi'] [{'concept': 'common name'}, 'place of death', 'Bandung'] [{'concept': 'common name'}, 'place of death', 'Mar del Plata']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death ?b . ?p rdf:type ontology:common_name . VALUES ( ?b ) { ( resource:Batumi ) ( resource:Bandung ) ( resource:Mar_del_Plata ) } }
[]
common name
Q461377 Q2337367 Q10390398
SYSTEM
Paribatra Sukhumbhand, Alexi Inauri, Victorio Casa
Q2846818 Q2993871 Q4217941 Q2337367 Q4314173 Q3510609 Q4259171 Q1587648 Q16591685 Q3082995 Q76297 Q12508789 Q255485 Q2253449 Q3418252 Q4251141 Q12507534 Q11856039 Q15734237 Q17919 Q4804179 Q461377 Q3033048 Q5926143 Q10971618 Q5660977 Q5663474 Q23942891 Q1874039 Q5662430 Q4712152 Q5890340 Q3942212 Q3547614 Q26815540 Q5668810 Q17274747 Q6004770 Q5983905 Q9006205 Q5830241 Q5983912 Q3811183 Q5964011 Q10390398 Q6752614 Q5760160 Q5906301 Q4801773 Q6761698 Q2550417 Q3983875 Q5852512 Q6109560 Q5772001 Q15963963 Q2825881 Q5932683 Q3605463 Q20986431 Q16302011 Q5485721 Q524152 Q18350893 Q238557 Q5938739 Q3881745 Q5992035 Q1673965 Q5551763 Q4000027 Q2837468 Q2917366 Q1363140 Q5555788 Q7074667
(c(Q502895),P20,Q25475) (c(Q502895),P20,Q10389) (c(Q502895),P20,Q52607)
action filter_type
action find_reverse
entity prev_answer
relation P20
type Q502895
[ANSWERS] have those cities as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q25475'] [{'concept': 'Q502895'}, 'P20', 'Q10389'] [{'concept': 'Q502895'}, 'P20', 'Q52607']
SELECT DISTINCT ?p WHERE { ?p property:P20 ?b . ?p rdf:type ontology:Q502895 . VALUES ( ?b ) { ( resource:Q25475 ) ( resource:Q10389 ) ( resource:Q52607 ) } }
Andrey Krasnov Vladimir Liakhov Anatoli Kacharava Alexi Inauri Zurab Natiev Sékou Camara Moestopo Hartono Rekso Dharsono Bambang Sukowiyono Frans Louis Wiemans Adam Malik Robert Syarif Alexander Djajasiswaja Ernest Douwes Dekker Dick de Hoog Marah Roesli R. Soebekti Detty Kurnia Tony van Alphen Wolff Schoemaker Asep Sunandar Sunarya Paribatra Sukhumbhand Djoehana Wiradikarta January Christy Norberto Centeno Agustín Álvarez Alberto Ramón Vilanova Ovidio José Bianquet Ludovico Avio Alba Castellanos Alberto Olmedo Homero Cárpena Rubén Sosa Ubaldo Nestor Sacco Guiche Aizemberg Alicia Muñiz Felipe Santiago Pérez María Wérnicke Luis María Macaya Héctor Gagliardi Elías Rosenfeld Luis María Sobrón Julio Venini Héctor Pellegrini Victorio Casa Manuel Granada Celestino Rodrigo Héctor Méndez Arturo Naón Maria de Maeztu Whitney Washington Castro Teodoro Bronzini Eva Franco Roberto Airaldi Claudio Levrino Jorge Marchesini Silvia Filler Joe Rígoli Adolfo Philippeaux Armando Chulak Saúl Canessa Tino Pascali Andrés Gaos Berea Alberto Sensini Alfonsina Storni José Caridi Olimpio Bobbio Manuel A. Rodríguez Isidro Maiztegui Mauricio Rosenbaum Tsushima Sadahei Jorge Arguindegui José Pedroni Erwin Kohn Cristóbal María Hicken Obdulio Diano
Paribatra Sukhumbhand, Alexi Inauri and Victorio Casa have those cities as the area of death
Paribatra Sukhumbhand Alexi Inauri Victorio Casa
action filter_type
action find_reverse
entity prev_answer
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Batumi'] [{'concept': 'common name'}, 'place of death', 'Bandung'] [{'concept': 'common name'}, 'place of death', 'Mar del Plata']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death ?b . ?p rdf:type ontology:common_name . VALUES ( ?b ) { ( resource:Batumi ) ( resource:Bandung ) ( resource:Mar_del_Plata ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q10390398
P54
Q1194951
USER
Which national sports team is that person a member of ?
(Q10390398,P54,c(Q1194951))
action filter_type
action find
entity Q10390398
relation P54
type Q1194951
['Q10390398', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?t WHERE { resource:Q10390398 property:P54 ?t . ?t rdf:type ontology:Q1194951 }
Victorio Casa
action filter_type
action find
entity Victorio Casa
relation member of sports team
type national sports team
['Victorio Casa', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?t WHERE { resource:Victorio_Casa property:member_of_sports_team ?t . ?t rdf:type ontology:national_sports_team }
[]
national sports team
Clarification for simple ques.
Q461377
SYSTEM
Did you mean Paribatra Sukhumbhand ?
Q461377 Q2337367 Q10390398
(Q461377,P54,c(Q1194951)) (Q2337367,P54,c(Q1194951)) (Q10390398,P54,c(Q1194951))
[ANSWER]
['Q461377', 'P54', {'concept': 'Q1194951'}] ['Q2337367', 'P54', {'concept': 'Q1194951'}] ['Q10390398', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?t WHERE { resource:Q10390398 property:P54 ?t . ?t rdf:type ontology:Q1194951 }
Paribatra Sukhumbhand Alexi Inauri Victorio Casa
Did you mean Paribatra Sukhumbhand ?
Paribatra Sukhumbhand
['Paribatra Sukhumbhand', 'member of sports team', {'concept': 'national sports team'}] ['Alexi Inauri', 'member of sports team', {'concept': 'national sports team'}] ['Victorio Casa', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?t WHERE { resource:Victorio_Casa property:member_of_sports_team ?t . ?t rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
USER
No, I meant Victorio Casa. Could you tell me the answer for that?
(Q10390398,P54,c(Q1194951))
Q10390398
['Q10390398', 'P54', {'concept': 'Q1194951'}]
['Victorio Casa', 'member of sports team', {'concept': 'national sports team'}]
[]
Q79800
SYSTEM
Argentina national football team
Q79800
(Q10390398,P54,c(Q1194951))
action filter_type
action find
entity Q10390398
relation P54
type Q1194951
And [ANSWER] is that person a member of
['Q10390398', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?t WHERE { resource:Q10390398 property:P54 ?t . ?t rdf:type ontology:Q1194951 }
Argentina national football team
And Argentina national football team is that person a member of
Argentina national football team
action filter_type
action find
entity Victorio Casa
relation member of sports team
type national sports team
['Victorio Casa', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?t WHERE { resource:Victorio_Casa property:member_of_sports_team ?t . ?t rdf:type ontology:national_sports_team }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q461377
P21 P40
Q502895
USER
Which people have Paribatra Sukhumbhand as a child and have the gender as male ?
AND((c(Q502895),P40,Q461377), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q461377
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q461377'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P40 resource:Q461377 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
male Paribatra Sukhumbhand
action filter_type
action intersection
action find_reverse
entity Paribatra Sukhumbhand
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Paribatra Sukhumbhand'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:child resource:Paribatra_Sukhumbhand . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
common name
Q158861
SYSTEM
Chulalongkorn
Q158861
AND((c(Q502895),P40,Q461377), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q461377
relation P40
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] have Paribatra Sukhumbhand as a child and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q461377'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P40 resource:Q461377 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
Chulalongkorn
Chulalongkorn have Paribatra Sukhumbhand as a child and have the gender as male
Chulalongkorn
action filter_type
action intersection
action find_reverse
entity Paribatra Sukhumbhand
relation child
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Paribatra Sukhumbhand'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:child resource:Paribatra_Sukhumbhand . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 1723 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1723
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?v = 1723 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1723
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?v = 1723 ) }
[]
musical instrument common name
SYSTEM
7
Q80284 Q46185 Q80019 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1723
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?s } . FILTER ( ?v = 1723 ) }
viola bass guitar double bass trumpet cello organ drum kit
7
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1723
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?c ) AS ?v ) WHERE { ?c property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?s } . FILTER ( ?v = 1723 ) }
[]