Simple Question (Direct)
Simple Question
Q3742664
P1412
Q34770
USER
Which language can Ferdinando Riva read ?
(Q3742664,P1412,c(Q34770))
action filter_type
action find
entity Q3742664
relation P1412
type Q34770
['Q3742664', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q3742664 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Ferdinando Riva
action filter_type
action find
entity Ferdinando Riva
relation languages spoken, written or signed
type language
['Ferdinando Riva', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Ferdinando_Riva property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q3742664,P1412,c(Q34770))
action filter_type
action find
entity Q3742664
relation P1412
type Q34770
Ferdinando Riva can read in [ANSWER]
['Q3742664', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q3742664 property:P1412 ?r . ?r rdf:type ontology:Q34770 }
Italian
Ferdinando Riva can read in Italian
Italian
action filter_type
action find
entity Ferdinando Riva
relation languages spoken, written or signed
type language
['Ferdinando Riva', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Ferdinando_Riva property:languages_spoken,_written_or_signed ?r . ?r rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3742664
P641
Q349
USER
Which sport did that person participate in ?
(Q652,P641,c(Q349))
action filter_type
action find
entity Q3742664
relation P641
type Q349
['Q652', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q3742664 property:P641 ?h . ?h rdf:type ontology:Q349 }
Ferdinando Riva
action filter_type
action find
entity Ferdinando Riva
relation sport
type sport
['Italian', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Ferdinando_Riva property:sport ?h . ?h rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q652,P641,c(Q349))
action filter_type
action find
entity Q3742664
relation P641
type Q349
That person participated in [ANSWER]
['Q652', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?h WHERE { resource:Q3742664 property:P641 ?h . ?h rdf:type ontology:Q349 }
association football
That person participated in association football
association football
action filter_type
action find
entity Ferdinando Riva
relation sport
type sport
['Italian', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?h WHERE { resource:Ferdinando_Riva property:sport ?h . ?h rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3742664
P138
Q483110
USER
Which stadium is named after that person ?
(c(Q483110),P138,Q2736)
action filter_type
action find_reverse
entity Q3742664
relation P138
type Q483110
[{'concept': 'Q483110'}, 'P138', 'Q2736']
SELECT DISTINCT ?b WHERE { ?b property:P138 resource:Q3742664 . ?b rdf:type ontology:Q483110 }
Ferdinando Riva
action filter_type
action find_reverse
entity Ferdinando Riva
relation named after
type stadium
[{'concept': 'stadium'}, 'named after', 'association football']
SELECT DISTINCT ?b WHERE { ?b property:named_after resource:Ferdinando_Riva . ?b rdf:type ontology:stadium }
[]
stadium
Q663857
SYSTEM
Stadio comunale Riva IV
Q663857
(c(Q483110),P138,Q2736)
action filter_type
action find_reverse
entity Q3742664
relation P138
type Q483110
[ANSWER] is named after that person
[{'concept': 'Q483110'}, 'P138', 'Q2736']
SELECT DISTINCT ?b WHERE { ?b property:P138 resource:Q3742664 . ?b rdf:type ontology:Q483110 }
Stadio comunale Riva IV
Stadio comunale Riva IV is named after that person
Stadio comunale Riva IV
action filter_type
action find_reverse
entity Ferdinando Riva
relation named after
type stadium
[{'concept': 'stadium'}, 'named after', 'association football']
SELECT DISTINCT ?b WHERE { ?b property:named_after resource:Ferdinando_Riva . ?b rdf:type ontology:stadium }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q663857 Q39
P17
Q15617994
USER
Is that stadium a part of Switzerland ?
(Q663857,P17,Q39)
action is_in
entity Q39
action find
entity Q663857
relation P17
['Q663857', 'P17', 'Q39']
ASK WHERE { resource:Q663857 property:P17 resource:Q39 }
Stadio comunale Riva IV Switzerland
action is_in
entity Switzerland
action find
entity Stadio comunale Riva IV
relation country
['Stadio comunale Riva IV', 'country', 'Switzerland']
ASK WHERE { resource:Stadio_comunale_Riva_IV property:country resource:Switzerland }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q663857,P17,Q39)
action is_in
entity Q39
action find
entity Q663857
relation P17
[ANSWER]
['Q663857', 'P17', 'Q39']
ASK WHERE { resource:Q663857 property:P17 resource:Q39 }
Yes
action is_in
entity Switzerland
action find
entity Stadio comunale Riva IV
relation country
['Stadio comunale Riva IV', 'country', 'Switzerland']
ASK WHERE { resource:Stadio_comunale_Riva_IV property:country resource:Switzerland }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3028259
Q15617994
USER
And also tell me about Jardim Botânico de São Paulo?
(Q3028259,P17,c(Q15617994))
action filter_type
action find
entity Q3028259
relation P17
type Q15617994
['Q3028259', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q3028259 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Jardim Botânico de São Paulo
action filter_type
action find
entity Jardim Botânico de São Paulo
relation country
type designation for an administrative territorial entity
['Jardim Botânico de São Paulo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jardim_Botânico_de_São_Paulo property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q3028259,P17,c(Q15617994))
action filter_type
action find
entity Q3028259
relation P17
type Q15617994
[ANSWER]
['Q3028259', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { resource:Q3028259 property:P17 ?z . ?z rdf:type ontology:Q15617994 }
Brazil
Brazil
action filter_type
action find
entity Jardim Botânico de São Paulo
relation country
type designation for an administrative territorial entity
['Jardim Botânico de São Paulo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Jardim_Botânico_de_São_Paulo property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:P530 ?i . ?p rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?e ) WHERE { ?z property:P530 ?a . ?z rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?e = ?s ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?e ) WHERE { ?z property:diplomatic_relation ?a . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?e = ?s ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:P530 ?i . ?p rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?e ) WHERE { ?z property:P530 ?a . ?z rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?z } . FILTER ( ?e = ?s ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?s ) { SELECT DISTINCT ?p ( COUNT ( ?i ) AS ?u ) WHERE { ?p property:diplomatic_relation ?i . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?p } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?e ) WHERE { ?z property:diplomatic_relation ?a . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . FILTER ( ?e = ?s ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q542 Q2736
P641
Q502895
USER
Which people play association football and athletics ?
AND((c(Q502895),P641,Q2736), (c(Q502895),P641,Q542))
action filter_type
action intersection
action find_reverse
entity Q2736
relation P641
action find_reverse
entity Q542
relation P641
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P641', 'Q2736'], [{'concept': 'Q502895'}, 'P641', 'Q542']]}
SELECT DISTINCT ?w WHERE { ?w property:P641 resource:Q542 . ?w property:P641 resource:Q2736 . ?w rdf:type ontology:Q502895 }
athletics association football
action filter_type
action intersection
action find_reverse
entity association football
relation sport
action find_reverse
entity athletics
relation sport
type common name
{'AND': [[{'concept': 'common name'}, 'sport', 'association football'], [{'concept': 'common name'}, 'sport', 'athletics']]}
SELECT DISTINCT ?w WHERE { ?w property:sport resource:athletics . ?w property:sport resource:association_football . ?w rdf:type ontology:common_name }
[]
common name
Q1384801 Q2701223 Q715331 Q2423103 Q2491603 Q2179088 Q2206273 Q331223 Q1586429 Q1810317
SYSTEM
Some of them are Max Houben, Adam Gemili, Arturo Maffei, Jaap Knol, Oscar van Rappard, Imo Fiamalua, Dik Herberts, Apostolos Nikolaidis, Harry Broos, Johannes Gandil
Q250557 Q2326617 Q1586429 Q313443 Q18221554 Q314131 Q176479 Q2939295 Q1389937 Q250005 Q2440937 Q21131654 Q2423103 Q100725 Q3564965 Q2701223 Q4846455 Q18637568 Q15879282 Q331223 Q1356677 Q715331 Q456600 Q2179088 Q1384801 Q1159566 Q1460792 Q3498145 Q19519353 Q1035032 Q919648 Q11718279 Q2355792 Q489047 Q11779642 Q1989888 Q1682410 Q2491603 Q303795 Q11729330 Q301677 Q3266827 Q1810317 Q312662 Q18758295 Q11613383 Q1393494 Q2756677 Q870676 Q11754531 Q2206273
AND((c(Q502895),P641,Q2736), (c(Q502895),P641,Q542))
action filter_type
action intersection
action find_reverse
entity Q2736
relation P641
action find_reverse
entity Q542
relation P641
type Q502895
[ANSWERS] play association football and athletics
{'AND': [[{'concept': 'Q502895'}, 'P641', 'Q2736'], [{'concept': 'Q502895'}, 'P641', 'Q542']]}
SELECT DISTINCT ?w WHERE { ?w property:P641 resource:Q542 . ?w property:P641 resource:Q2736 . ?w rdf:type ontology:Q502895 }
Willem Hesselink Wim Roosen Harry Broos Alfréd Hajós Kabange Mupopo Max Gablonsky Andrés Mazali Valéry Sedoc Jur Haak Issa Hayatou Etimoni Timuani Billy Ions Jaap Knol Carl Zörner Wacław Kuchar Adam Gemili Rudolf Spaander Sitthideth Khanthavong Meg de Jongh Apostolos Nikolaidis Tosaint Ricketts Arturo Maffei Preguinho Imo Fiamalua Max Houben Lucien van Nuffel Lamberto Boranga Stella Mbachu Charles Grimshaw Heinrich Paal Isabelino Gradín Jan Loth Barend van Hemert Jan de Natris Mieczysław Balcer Nihat Bekdik Jan de Vries Oscar van Rappard Nils Middelboe Juliusz Miller Silvio Cator Luis Soares Johannes Gandil Rodolphe Seeldrayers Elise Van Truyen Alexis Soulignac Faisal Faisal Manuel Anatol Hermann Friese Leonardo De Lucca Dik Herberts
Max Houben, Adam Gemili, Arturo Maffei, Jaap Knol, Oscar van Rappard, Imo Fiamalua, Dik Herberts, Apostolos Nikolaidis, Harry Broos and Johannes Gandil play association football and athletics
Max Houben Adam Gemili Arturo Maffei Jaap Knol Oscar van Rappard Imo Fiamalua Dik Herberts Apostolos Nikolaidis Harry Broos Johannes Gandil
action filter_type
action intersection
action find_reverse
entity association football
relation sport
action find_reverse
entity athletics
relation sport
type common name
{'AND': [[{'concept': 'common name'}, 'sport', 'association football'], [{'concept': 'common name'}, 'sport', 'athletics']]}
SELECT DISTINCT ?w WHERE { ?w property:sport resource:athletics . ?w property:sport resource:association_football . ?w rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2701223
P2416
Q31629
USER
Which type of sport did that person compete in ?
(Q2701223,P2416,c(Q31629))
action filter_type
action find
entity Q2701223
relation P2416
type Q31629
['Q2701223', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?e WHERE { resource:Q2701223 property:P2416 ?e . ?e rdf:type ontology:Q31629 }
Adam Gemili
action filter_type
action find
entity Adam Gemili
relation sports discipline competed in
type type of sport
['Adam Gemili', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?e WHERE { resource:Adam_Gemili property:sports_discipline_competed_in ?e . ?e rdf:type ontology:type_of_sport }
[]
type of sport
Clarification for simple ques.
Q2206273
SYSTEM
Did you mean Dik Herberts ?
Q1384801 Q2701223 Q715331 Q2423103 Q2491603 Q2179088 Q2206273 Q331223 Q1586429 Q1810317
(Q1384801,P2416,c(Q31629)) (Q2701223,P2416,c(Q31629)) (Q715331,P2416,c(Q31629)) (Q2423103,P2416,c(Q31629)) (Q2491603,P2416,c(Q31629)) (Q2179088,P2416,c(Q31629)) (Q2206273,P2416,c(Q31629)) (Q331223,P2416,c(Q31629)) (Q1586429,P2416,c(Q31629)) (Q1810317,P2416,c(Q31629))
[ANSWER]
['Q1384801', 'P2416', {'concept': 'Q31629'}] ['Q2701223', 'P2416', {'concept': 'Q31629'}] ['Q715331', 'P2416', {'concept': 'Q31629'}] ['Q2423103', 'P2416', {'concept': 'Q31629'}] ['Q2491603', 'P2416', {'concept': 'Q31629'}] ['Q2179088', 'P2416', {'concept': 'Q31629'}] ['Q2206273', 'P2416', {'concept': 'Q31629'}] ['Q331223', 'P2416', {'concept': 'Q31629'}] ['Q1586429', 'P2416', {'concept': 'Q31629'}] ['Q1810317', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?e WHERE { resource:Q2701223 property:P2416 ?e . ?e rdf:type ontology:Q31629 }
Max Houben Adam Gemili Arturo Maffei Jaap Knol Oscar van Rappard Imo Fiamalua Dik Herberts Apostolos Nikolaidis Harry Broos Johannes Gandil
Did you mean Dik Herberts ?
Dik Herberts
['Max Houben', 'sports discipline competed in', {'concept': 'type of sport'}] ['Adam Gemili', 'sports discipline competed in', {'concept': 'type of sport'}] ['Arturo Maffei', 'sports discipline competed in', {'concept': 'type of sport'}] ['Jaap Knol', 'sports discipline competed in', {'concept': 'type of sport'}] ['Oscar van Rappard', 'sports discipline competed in', {'concept': 'type of sport'}] ['Imo Fiamalua', 'sports discipline competed in', {'concept': 'type of sport'}] ['Dik Herberts', 'sports discipline competed in', {'concept': 'type of sport'}] ['Apostolos Nikolaidis', 'sports discipline competed in', {'concept': 'type of sport'}] ['Harry Broos', 'sports discipline competed in', {'concept': 'type of sport'}] ['Johannes Gandil', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?e WHERE { resource:Adam_Gemili property:sports_discipline_competed_in ?e . ?e rdf:type ontology:type_of_sport }
[]
Simple Question (Coreferenced)
USER
No, I meant Adam Gemili. Could you tell me the answer for that?
(Q2701223,P2416,c(Q31629))
Q2701223
['Q2701223', 'P2416', {'concept': 'Q31629'}]
['Adam Gemili', 'sports discipline competed in', {'concept': 'type of sport'}]
[]
Q164761
SYSTEM
100 metres
Q164761
(Q2701223,P2416,c(Q31629))
action filter_type
action find
entity Q2701223
relation P2416
type Q31629
That person competed in [ANSWER]
['Q2701223', 'P2416', {'concept': 'Q31629'}]
SELECT DISTINCT ?e WHERE { resource:Q2701223 property:P2416 ?e . ?e rdf:type ontology:Q31629 }
100 metres
That person competed in 100 metres
100 metres
action filter_type
action find
entity Adam Gemili
relation sports discipline competed in
type type of sport
['Adam Gemili', 'sports discipline competed in', {'concept': 'type of sport'}]
SELECT DISTINCT ?e WHERE { resource:Adam_Gemili property:sports_discipline_competed_in ?e . ?e rdf:type ontology:type_of_sport }
[]