Simple Question (Direct)
Simple Question
Q1594410
P734
Q82799
USER
Who has the surname Heidrun Bartholomäus ?
(Q1594410,P734,c(Q82799))
action filter_type
action find
entity Q1594410
relation P734
type Q82799
['Q1594410', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q1594410 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Heidrun Bartholomäus
action filter_type
action find
entity Heidrun Bartholomäus
relation family name
type name
['Heidrun Bartholomäus', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Heidrun_Bartholomäus property:family_name ?r . ?r rdf:type ontology:name }
[]
name
Q23309825
SYSTEM
Bartholomäus
Q23309825
(Q1594410,P734,c(Q82799))
action filter_type
action find
entity Q1594410
relation P734
type Q82799
[ANSWER] has the surname Heidrun [ANSWER]
['Q1594410', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?r WHERE { resource:Q1594410 property:P734 ?r . ?r rdf:type ontology:Q82799 }
Bartholomäus
Bartholomäus has the surname Heidrun Bartholomäus
Bartholomäus
action filter_type
action find
entity Heidrun Bartholomäus
relation family name
type name
['Heidrun Bartholomäus', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?r WHERE { resource:Heidrun_Bartholomäus property:family_name ?r . ?r rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1594410
P161
Q838948
USER
Which work of art stars that person as actor ?
(c(Q838948),P161,Q23309825)
action filter_type
action find_reverse
entity Q1594410
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q23309825']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q838948 . ?l property:P161 resource:Q1594410 }
Heidrun Bartholomäus
action filter_type
action find_reverse
entity Heidrun Bartholomäus
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Bartholomäus']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:work_of_art . ?l property:cast_member resource:Heidrun_Bartholomäus }
[]
work of art
Q478536
SYSTEM
Three
Q478536
(c(Q838948),P161,Q23309825)
action filter_type
action find_reverse
entity Q1594410
relation P161
type Q838948
[ANSWER] stars that person as actor
[{'concept': 'Q838948'}, 'P161', 'Q23309825']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q838948 . ?l property:P161 resource:Q1594410 }
Three
Three stars that person as actor
Three
action filter_type
action find_reverse
entity Heidrun Bartholomäus
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Bartholomäus']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:work_of_art . ?l property:cast_member resource:Heidrun_Bartholomäus }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P138
Q56061 Q2221906 Q82799
USER
Which names are the eponym of max number of administrative territories or geographic locations ?
(c(Q82799),P138,c(Q56061)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q2221906
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q2221906 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { { ?l property:P138 ?b . ?l rdf:type ontology:Q82799 . ?b rdf:type ontology:Q56061 } UNION { ?l property:P138 ?b . ?l rdf:type ontology:Q82799 . ?b rdf:type ontology:Q2221906 } } GROUP BY ?l } . FILTER ( ?k = ?e ) }
action argmax
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:geographic_location ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { { ?l property:named_after ?b . ?l rdf:type ontology:name . ?b rdf:type ontology:administrative_territorial_entity } UNION { ?l property:named_after ?b . ?l rdf:type ontology:name . ?b rdf:type ontology:geographic_location } } GROUP BY ?l } . FILTER ( ?k = ?e ) }
[]
administrative territorial entity geographic location name
Q22922124
SYSTEM
von Mecklenburg-Schwerin
Q22922124
(c(Q82799),P138,c(Q56061)|c(Q2221906))
action argmax
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q2221906
[ANSWER] is the eponym of max number of administrative territories or geographic locations
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q2221906'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?s . VALUES ( ?s ) { ( ontology:Q56061 ) ( ontology:Q2221906 ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { { ?l property:P138 ?b . ?l rdf:type ontology:Q82799 . ?b rdf:type ontology:Q56061 } UNION { ?l property:P138 ?b . ?l rdf:type ontology:Q82799 . ?b rdf:type ontology:Q2221906 } } GROUP BY ?l } . FILTER ( ?k = ?e ) }
von Mecklenburg-Schwerin
Von Mecklenburg-Schwerin is the eponym of max number of administrative territories or geographic locations
von Mecklenburg-Schwerin
action argmax
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type geographic location
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'geographic location'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?e ) { SELECT DISTINCT ?j ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?s . VALUES ( ?s ) { ( ontology:administrative_territorial_entity ) ( ontology:geographic_location ) } } GROUP BY ?j } } . { SELECT DISTINCT ?l ( COUNT ( ?b ) AS ?k ) WHERE { { ?l property:named_after ?b . ?l rdf:type ontology:name . ?b rdf:type ontology:administrative_territorial_entity } UNION { ?l property:named_after ?b . ?l rdf:type ontology:name . ?b rdf:type ontology:geographic_location } } GROUP BY ?l } . FILTER ( ?k = ?e ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
Which languages are the languages of work for atleast 11 names ?
(c(Q82799),P407,c(Q34770))
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 11
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P407 ?a . ?a rdf:type ontology:Q34770 . ?i rdf:type ontology:Q82799 } GROUP BY ?a } . FILTER ( ?u >= 11 ) }
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 11
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:language_of_work_or_name ?a . ?a rdf:type ontology:language . ?i rdf:type ontology:name } GROUP BY ?a } . FILTER ( ?u >= 11 ) }
[]
language name
Q1860 Q9056 Q1321
SYSTEM
English, Czech, Spanish
Q1860 Q1321 Q9056 Q652
(c(Q82799),P407,c(Q34770))
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 11
[ANSWERS] the languages of work for atleast 11 names
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:P407 ?a . ?a rdf:type ontology:Q34770 . ?i rdf:type ontology:Q82799 } GROUP BY ?a } . FILTER ( ?u >= 11 ) }
English Spanish Czech Italian
English, Czech and Spanish the languages of work for atleast 11 names
English Czech Spanish
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 11
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?i ) AS ?u ) WHERE { ?i property:language_of_work_or_name ?a . ?a rdf:type ontology:language . ?i rdf:type ontology:name } GROUP BY ?a } . FILTER ( ?u >= 11 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1860 Q9056 Q1321
P37
Q15617994
USER
Which administrative territories are English, Czech and Spanish associated to as the official language ?
(c(Q15617994),P37,Q1860) (c(Q15617994),P37,Q9056) (c(Q15617994),P37,Q1321)
action union
action filter_type
action find_reverse
entity Q1860
relation P37
type Q15617994
action filter_type
action find_reverse
entity Q9056
relation P37
type Q15617994
action filter_type
action find_reverse
entity Q1321
relation P37
type Q15617994
[{'concept': 'Q15617994'}, 'P37', 'Q1860'] [{'concept': 'Q15617994'}, 'P37', 'Q9056'] [{'concept': 'Q15617994'}, 'P37', 'Q1321']
SELECT DISTINCT ?r WHERE { { ?r property:P37 resource:Q1860 . ?r rdf:type ontology:Q15617994 } UNION { ?r property:P37 resource:Q9056 . ?r rdf:type ontology:Q15617994 } }
English Czech Spanish
action union
action filter_type
action find_reverse
entity English
relation official language
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Czech
relation official language
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Spanish
relation official language
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'official language', 'English'] [{'concept': 'designation for an administrative territorial entity'}, 'official language', 'Czech'] [{'concept': 'designation for an administrative territorial entity'}, 'official language', 'Spanish']
SELECT DISTINCT ?r WHERE { { ?r property:official_language resource:English . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:official_language resource:Czech . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q55 Q953 Q953
SYSTEM
Netherlands for 1st, Zambia for 2nd, 3rd
Q986 Q2003 Q1904 Q963 Q2023 Q760 Q958 Q924 Q928 Q709 Q712 Q710 Q734 Q1020 Q695 Q1036 Q1033 Q1030 Q683 Q686 Q1005 Q1009 Q1013 Q1042 Q1050 Q754 Q34020 Q258 Q242 Q244 Q145 Q672 Q954 Q953 Q953 Q114 Q117 Q1014 Q668 Q678 Q27 Q1037 Q55 Q233 Q1989 Q833 Q1044 Q1951 Q1952 Q843 Q1948 Q1049 Q1979 Q1974 Q784 Q213 Q792 Q693658 Q750 Q774 Q739 Q736 Q414 Q241 Q795587 Q29 Q717 Q77 Q298 Q96 Q811 Q804 Q800 Q733 Q783 Q786
(c(Q15617994),P37,Q1860) (c(Q15617994),P37,Q9056) (c(Q15617994),P37,Q1321)
action union
action filter_type
action find_reverse
entity Q1860
relation P37
type Q15617994
action filter_type
action find_reverse
entity Q9056
relation P37
type Q15617994
action filter_type
action find_reverse
entity Q1321
relation P37
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P37', 'Q1860'] [{'concept': 'Q15617994'}, 'P37', 'Q9056'] [{'concept': 'Q15617994'}, 'P37', 'Q1321']
SELECT DISTINCT ?r WHERE { { ?r property:P37 resource:Q1860 . ?r rdf:type ontology:Q15617994 } UNION { ?r property:P37 resource:Q9056 . ?r rdf:type ontology:Q15617994 } }
Eritrea Newfoundland and Labrador Ontario Botswana Nunavut Saint Lucia South Sudan Tanzania Philippines Marshall Islands Fiji Kiribati Guyana Malawi Palau Uganda Nigeria Namibia Samoa Vanuatu Gambia Cameroon Lesotho Seychelles Swaziland Trinidad and Tobago Niue South Africa Belize Barbados United Kingdom Tuvalu Zimbabwe Zambia Zambia Kenya Ghana Liberia India Tonga Ireland Rwanda Netherlands Malta Saskatchewan Malaysia Sierra Leone Alberta Nova Scotia Pakistan Manitoba Sudan Prince Edward Island British Columbia Dominica Czech Republic El Salvador Izabal Department Bolivia Guatemala Colombia Ecuador Argentina Cuba Escuintla Spain Venezuela Uruguay Chile Mexico Nicaragua Panama Costa Rica Paraguay Honduras Dominican Republic
Netherlands, Zambia and Zambia are English, Czech and Spanish associated to as the official language
Netherlands Zambia Zambia
action union
action filter_type
action find_reverse
entity English
relation official language
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Czech
relation official language
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Spanish
relation official language
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'official language', 'English'] [{'concept': 'designation for an administrative territorial entity'}, 'official language', 'Czech'] [{'concept': 'designation for an administrative territorial entity'}, 'official language', 'Spanish']
SELECT DISTINCT ?r WHERE { { ?r property:official_language resource:English . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?r property:official_language resource:Czech . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q953
P17
Q13220204
USER
Which administrative country subdivisions are located in that administrative territory ?
(c(Q13220204),P17,Q953)
action filter_type
action find_reverse
entity Q953
relation P17
type Q13220204
[{'concept': 'Q13220204'}, 'P17', 'Q953']
SELECT DISTINCT ?q WHERE { ?q property:P17 resource:Q953 . ?q rdf:type ontology:Q13220204 }
Zambia
action filter_type
action find_reverse
entity Zambia
relation country
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'country', 'Zambia']
SELECT DISTINCT ?q WHERE { ?q property:country resource:Zambia . ?q rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Clarification for simple ques.
Q953
SYSTEM
Did you mean Zambia ?
Q55 Q953 Q953
(c(Q13220204),P17,Q55) (c(Q13220204),P17,Q953) (c(Q13220204),P17,Q953)
[ANSWER]
[{'concept': 'Q13220204'}, 'P17', 'Q55'] [{'concept': 'Q13220204'}, 'P17', 'Q953'] [{'concept': 'Q13220204'}, 'P17', 'Q953']
SELECT DISTINCT ?q WHERE { ?q property:P17 resource:Q953 . ?q rdf:type ontology:Q13220204 }
Netherlands Zambia Zambia
Did you mean Zambia ?
Zambia
[{'concept': 'second-level administrative country subdivision'}, 'country', 'Netherlands'] [{'concept': 'second-level administrative country subdivision'}, 'country', 'Zambia'] [{'concept': 'second-level administrative country subdivision'}, 'country', 'Zambia']
SELECT DISTINCT ?q WHERE { ?q property:country resource:Zambia . ?q rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q13220204),P17,Q953)
[{'concept': 'Q13220204'}, 'P17', 'Q953']
[{'concept': 'second-level administrative country subdivision'}, 'country', 'Zambia']
[]
Q964795 Q655508 Q595913
SYSTEM
Mazabuka District, Mporokoso District, Chibombo District
Q655508 Q3031594 Q3031862 Q3032013 Q3031865 Q3031844 Q3030950 Q3031846 Q3031847 Q631149 Q3030957 Q3031495 Q3031612 Q3031848 Q3031109 Q3031321 Q3031147 Q3031573 Q3031435 Q3031569 Q3031323 Q595913 Q3031588 Q964795 Q3031127 Q3031351 Q3031125 Q3031874 Q3031563 Q3031337 Q3031334 Q3031128 Q3031314 Q3031316 Q3031317 Q3031574 Q3031522 Q3031144 Q3031571 Q644908 Q3031533 Q303704 Q974146 Q3031580 Q3031474 Q3031813 Q3031126 Q3031482 Q3031342 Q3031606 Q3031622 Q3031335 Q3031624 Q3031508 Q3031593 Q3031286 Q3031421 Q3031426 Q3031424 Q3031425 Q3031130 Q3031117 Q3031132 Q3031656 Q3031330 Q3031327 Q3031340 Q3031440 Q3031328 Q3031462 Q3031409 Q3031576
(c(Q13220204),P17,Q953)
action filter_type
action find_reverse
entity Q953
relation P17
type Q13220204
[ANSWERS] are located in that administrative territory
[{'concept': 'Q13220204'}, 'P17', 'Q953']
SELECT DISTINCT ?q WHERE { ?q property:P17 resource:Q953 . ?q rdf:type ontology:Q13220204 }
Mporokoso District Mwense District Siavonga District Zambezi District Sinazongwe District Senanga District Isoka District Serenje District Sesheke District Kalulushi District Itezhi-Tezhi District Mbala District Namwala District Shangombo District Chadiza District Kalabo District Choma District Mpika District Lusaka District Mpongwe District Kalomo District Chibombo District Mungwi District Mazabuka District Chililabombwe District Kitwe District Chiengi District Solwezi District Monze District Katete District Kasama District Chingola District Kabompo District Kafue District Kabwe District Mufulira District Mkushi District Chongwe District Mpulungu District Chama District Mongu District Petauke District Luangwa District Mumbwa District Mansa District Samfya District Chilubi District Masaiti District Kazungula District Nakonde District Ndola District Kasempa District Nchelenge District Milenge District Mwinilunga District Gwembe District Luanshya District Lundazi District Lufwanyama District Lukulu District Chinsali District Chavuma District Chipata District Nyimba District Kaputa District Kapiri Mposhi District Kawambwa District Luwingu District Kaoma District Mambwe District Livingstone District Mufumbwe District
Mazabuka District, Mporokoso District and Chibombo District are located in that administrative territory
Mazabuka District Mporokoso District Chibombo District
action filter_type
action find_reverse
entity Zambia
relation country
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'country', 'Zambia']
SELECT DISTINCT ?q WHERE { ?q property:country resource:Zambia . ?q rdf:type ontology:second-level_administrative_country_subdivision }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q55 Q38
P495
Q838948
USER
How many works of art originated in Netherlands and Italy ?
(c(Q838948),P495,Q55) (c(Q838948),P495,Q38)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P495
type Q838948
action filter_type
action find_reverse
entity Q38
relation P495
type Q838948
[{'concept': 'Q838948'}, 'P495', 'Q55'] [{'concept': 'Q838948'}, 'P495', 'Q38']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:P495 resource:Q55 . ?r rdf:type ontology:Q838948 . ?r rdf:type ontology:Q838948 . ?r property:P495 resource:Q38 }
Netherlands Italy
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation country of origin
type work of art
action filter_type
action find_reverse
entity Italy
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Netherlands'] [{'concept': 'work of art'}, 'country of origin', 'Italy']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:country_of_origin resource:Netherlands . ?r rdf:type ontology:work_of_art . ?r rdf:type ontology:work_of_art . ?r property:country_of_origin resource:Italy }
[]
work of art
SYSTEM
12
Q327681 Q1405016 Q3061984 Q3758124 Q775356 Q1141731 Q162277 Q643902 Q925937 Q20972620 Q110365 Q3545505
(c(Q838948),P495,Q55) (c(Q838948),P495,Q38)
action count
action intersection
action filter_type
action find_reverse
entity Q55
relation P495
type Q838948
action filter_type
action find_reverse
entity Q38
relation P495
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P495', 'Q55'] [{'concept': 'Q838948'}, 'P495', 'Q38']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:P495 resource:Q55 . ?r rdf:type ontology:Q838948 . ?r rdf:type ontology:Q838948 . ?r property:P495 resource:Q38 }
Dogville The Holy Girl Exit: Una storia personale Ganja Fiction The Idiots Manderlay Alexander Valentín The Other Final A Blast Dancer in the Dark Una noche con Sabrina Love
12
action count
action intersection
action filter_type
action find_reverse
entity Netherlands
relation country of origin
type work of art
action filter_type
action find_reverse
entity Italy
relation country of origin
type work of art
[{'concept': 'work of art'}, 'country of origin', 'Netherlands'] [{'concept': 'work of art'}, 'country of origin', 'Italy']
SELECT DISTINCT ( COUNT ( ?r ) AS ?l ) WHERE { ?r property:country_of_origin resource:Netherlands . ?r rdf:type ontology:work_of_art . ?r rdf:type ontology:work_of_art . ?r property:country_of_origin resource:Italy }
[]