Simple Question (Direct)
Simple Question
Q11959015
P26
Q502895
USER
Which person is married to Arne E. Holm ?
(Q11959015,P26,c(Q502895))
action filter_type
action find
entity Q11959015
relation P26
type Q502895
['Q11959015', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q11959015 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Arne E. Holm
action filter_type
action find
entity Arne E. Holm
relation spouse
type common name
['Arne E. Holm', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Arne_E._Holm property:spouse ?d . ?d rdf:type ontology:common_name }
[]
common name
Q11967243
SYSTEM
Else Hagen
Q11967243
(Q11959015,P26,c(Q502895))
action filter_type
action find
entity Q11959015
relation P26
type Q502895
[ANSWER] is married to Arne E. Holm
['Q11959015', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q11959015 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Else Hagen
Else Hagen is married to Arne E. Holm
Else Hagen
action filter_type
action find
entity Arne E. Holm
relation spouse
type common name
['Arne E. Holm', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Arne_E._Holm property:spouse ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11967243
P21
Q290
USER
Which sex does that person belong to ?
(Q11967243,P21,c(Q290))
action filter_type
action find
entity Q11967243
relation P21
type Q290
['Q11967243', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q11967243 property:P21 ?t }
Else Hagen
action filter_type
action find
entity Else Hagen
relation gender
type sex
['Else Hagen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Else_Hagen property:gender ?t }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q11967243,P21,c(Q290))
action filter_type
action find
entity Q11967243
relation P21
type Q290
That person belongs to [ANSWER]
['Q11967243', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q290 . resource:Q11967243 property:P21 ?t }
female
That person belongs to female
female
action filter_type
action find
entity Else Hagen
relation gender
type sex
['Else Hagen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:sex . resource:Else_Hagen property:gender ?t }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q20748109 Q11967243
P21
Q290
USER
Or Karl-Heinz Köhler?
OR((Q11967243,P21,c(Q290)), (Q20748109,P21,c(Q290)))
action filter_type
action union
action find
entity Q11967243
relation P21
action find
entity Q20748109
relation P21
type Q290
{'OR': [['Q11967243', 'P21', {'concept': 'Q290'}], ['Q20748109', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q11967243 property:P21 ?p } UNION { resource:Q20748109 property:P21 ?p } } . ?p rdf:type ontology:Q290 }
Karl-Heinz Köhler Else Hagen
action filter_type
action union
action find
entity Else Hagen
relation gender
action find
entity Karl-Heinz Köhler
relation gender
type sex
{'OR': [['Else Hagen', 'gender', {'concept': 'sex'}], ['Karl-Heinz Köhler', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Else_Hagen property:gender ?p } UNION { resource:Karl-Heinz_Köhler property:gender ?p } } . ?p rdf:type ontology:sex }
[]
sex
Q6581097 Q6581072
SYSTEM
male, female
Q6581097 Q6581072
OR((Q11967243,P21,c(Q290)), (Q20748109,P21,c(Q290)))
action filter_type
action union
action find
entity Q11967243
relation P21
action find
entity Q20748109
relation P21
type Q290
[ANSWERS]
{'OR': [['Q11967243', 'P21', {'concept': 'Q290'}], ['Q20748109', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q11967243 property:P21 ?p } UNION { resource:Q20748109 property:P21 ?p } } . ?p rdf:type ontology:Q290 }
male female
male female
action filter_type
action union
action find
entity Else Hagen
relation gender
action find
entity Karl-Heinz Köhler
relation gender
type sex
{'OR': [['Else Hagen', 'gender', {'concept': 'sex'}], ['Karl-Heinz Köhler', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Else_Hagen property:gender ?p } UNION { resource:Karl-Heinz_Köhler property:gender ?p } } . ?p rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q971903
P21
Q502895
USER
Do Melanie McQuaid have the gender as those sexes ?
(Q971903,P21,Q6581097) (Q971903,P21,Q6581072)
action is_in
entity prev_answer
action find
entity Q971903
relation P21
['Q971903', 'P21', 'Q6581097'] ['Q971903', 'P21', 'Q6581072']
ASK WHERE { resource:Q971903 property:P21 ?m . VALUES ( ?m ) { ( resource:Q6581097 ) ( resource:Q6581072 ) } }
Melanie McQuaid
action is_in
entity prev_answer
action find
entity Melanie McQuaid
relation gender
['Melanie McQuaid', 'gender', 'male'] ['Melanie McQuaid', 'gender', 'female']
ASK WHERE { resource:Melanie_McQuaid property:gender ?m . VALUES ( ?m ) { ( resource:male ) ( resource:female ) } }
[]
common name
SYSTEM
NO
(Q971903,P21,Q6581097) (Q971903,P21,Q6581072)
action is_in
entity prev_answer
action find
entity Q971903
relation P21
[ANSWER]
['Q971903', 'P21', 'Q6581097'] ['Q971903', 'P21', 'Q6581072']
ASK WHERE { resource:Q971903 property:P21 ?m . VALUES ( ?m ) { ( resource:Q6581097 ) ( resource:Q6581072 ) } }
No
action is_in
entity prev_answer
action find
entity Melanie McQuaid
relation gender
['Melanie McQuaid', 'gender', 'male'] ['Melanie McQuaid', 'gender', 'female']
ASK WHERE { resource:Melanie_McQuaid property:gender ?m . VALUES ( ?m ) { ( resource:male ) ( resource:female ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6380096 Q971903
P27
Q1048835
USER
Which political territories do Melanie McQuaid or Steve Payne belong to ?
OR((Q971903,P27,c(Q1048835)), (Q6380096,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q971903
relation P27
action find
entity Q6380096
relation P27
type Q1048835
{'OR': [['Q971903', 'P27', {'concept': 'Q1048835'}], ['Q6380096', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q971903 property:P27 ?u } UNION { resource:Q6380096 property:P27 ?u } } . ?u rdf:type ontology:Q1048835 }
Steve Payne Melanie McQuaid
action filter_type
action union
action find
entity Melanie McQuaid
relation country of citizenship
action find
entity Steve Payne
relation country of citizenship
type political territorial entity
{'OR': [['Melanie McQuaid', 'country of citizenship', {'concept': 'political territorial entity'}], ['Steve Payne', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Melanie_McQuaid property:country_of_citizenship ?u } UNION { resource:Steve_Payne property:country_of_citizenship ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
OR((Q971903,P27,c(Q1048835)), (Q6380096,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q971903
relation P27
action find
entity Q6380096
relation P27
type Q1048835
Melanie McQuaid or Steve Payne belong to Upper [ANSWER]
{'OR': [['Q971903', 'P27', {'concept': 'Q1048835'}], ['Q6380096', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q971903 property:P27 ?u } UNION { resource:Q6380096 property:P27 ?u } } . ?u rdf:type ontology:Q1048835 }
Canada
Melanie McQuaid or Steve Payne belong to Upper Canada
Canada
action filter_type
action union
action find
entity Melanie McQuaid
relation country of citizenship
action find
entity Steve Payne
relation country of citizenship
type political territorial entity
{'OR': [['Melanie McQuaid', 'country of citizenship', {'concept': 'political territorial entity'}], ['Steve Payne', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Melanie_McQuaid property:country_of_citizenship ?u } UNION { resource:Steve_Payne property:country_of_citizenship ?u } } . ?u rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1532
Q1194951 Q6979593
USER
How many national sports teams and national association football teams represent that political territory ?
(c(Q1194951),P1532,Q16) (c(Q6979593),P1532,Q16) (c(Q1194951),P1532,Q16) (c(Q6979593),P1532,Q16)
action count
action union
action filter_type
action find_reverse
entity Q16
relation P1532
type Q1194951
action filter_type
action find_reverse
entity Q16
relation P1532
type Q6979593
[{'concept': 'Q1194951'}, 'P1532', 'Q16'] [{'concept': 'Q6979593'}, 'P1532', 'Q16'] [{'concept': 'Q1194951'}, 'P1532', 'Q16'] [{'concept': 'Q6979593'}, 'P1532', 'Q16']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:P1532 resource:Q16 . ?z rdf:type ontology:Q1194951 } UNION { ?z rdf:type ontology:Q6979593 . ?z property:P1532 resource:Q16 } }
action count
action union
action filter_type
action find_reverse
entity Canada
relation country for sport
type national sports team
action filter_type
action find_reverse
entity Canada
relation country for sport
type national association football team
[{'concept': 'national sports team'}, 'country for sport', 'Canada'] [{'concept': 'national association football team'}, 'country for sport', 'Canada'] [{'concept': 'national sports team'}, 'country for sport', 'Canada'] [{'concept': 'national association football team'}, 'country for sport', 'Canada']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:country_for_sport resource:Canada . ?z rdf:type ontology:national_sports_team } UNION { ?z rdf:type ontology:national_association_football_team . ?z property:country_for_sport resource:Canada } }
[]
national sports team national association football team
SYSTEM
1 national sports teams and 4 national association football teams
Q5029537 Q3873967 Q499946 Q5029539 Q208635
(c(Q1194951),P1532,Q16) (c(Q6979593),P1532,Q16) (c(Q1194951),P1532,Q16) (c(Q6979593),P1532,Q16)
action count
action union
action filter_type
action find_reverse
entity Q16
relation P1532
type Q1194951
action filter_type
action find_reverse
entity Q16
relation P1532
type Q6979593
[ANSWER]
[{'concept': 'Q1194951'}, 'P1532', 'Q16'] [{'concept': 'Q6979593'}, 'P1532', 'Q16'] [{'concept': 'Q1194951'}, 'P1532', 'Q16'] [{'concept': 'Q6979593'}, 'P1532', 'Q16']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:P1532 resource:Q16 . ?z rdf:type ontology:Q1194951 } UNION { ?z rdf:type ontology:Q6979593 . ?z property:P1532 resource:Q16 } }
Canada women's national under-17 soccer team Canada Olympic soccer team Canada women's national soccer team Canada women's national under-20 soccer team Canada national soccer team
1 national sports teams and 4 national association football teams
action count
action union
action filter_type
action find_reverse
entity Canada
relation country for sport
type national sports team
action filter_type
action find_reverse
entity Canada
relation country for sport
type national association football team
[{'concept': 'national sports team'}, 'country for sport', 'Canada'] [{'concept': 'national association football team'}, 'country for sport', 'Canada'] [{'concept': 'national sports team'}, 'country for sport', 'Canada'] [{'concept': 'national association football team'}, 'country for sport', 'Canada']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { { ?z property:country_for_sport resource:Canada . ?z rdf:type ontology:national_sports_team } UNION { ?z rdf:type ontology:national_association_football_team . ?z property:country_for_sport resource:Canada } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q515 Q56061
USER
Which political territories have min number of cities or administrative territories as their county seat ?
(c(Q515)|c(Q56061),P1376,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?l WHERE { { ?z property:P1376 ?l . ?l rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q515 } UNION { ?l rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q56061 . ?z property:P1376 ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?e WHERE { { ?n property:P1376 ?e . ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q515 } UNION { ?n property:P1376 ?e . ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q56061 } } GROUP BY ?e } . FILTER ( ?g = ?b ) }
action argmin
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?l WHERE { { ?z property:capital_of ?l . ?l rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:city } UNION { ?l rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:administrative_territorial_entity . ?z property:capital_of ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?e WHERE { { ?n property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:city } UNION { ?n property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:administrative_territorial_entity } } GROUP BY ?e } . FILTER ( ?g = ?b ) }
[]
political territorial entity city administrative territorial entity
Q10453 Q104891 Q166709
SYSTEM
Weißenburg-Gunzenhausen, Västernorrland County, Vinnytsia Oblast
Q7130037 Q13885 Q13887 Q13728 Q13721 Q13723 Q13727 Q3321945 Q10500690 Q10453 Q10459 Q13902 Q3317759 Q43448 Q1122980 Q1382499 Q2026858 Q13769 Q13767 Q13763 Q7906 Q3312902 Q173407 Q2702993 Q6156 Q13867 Q13866 Q13864 Q13789 Q104257 Q10469 Q2485101 Q10462 Q10466 Q10465 Q104891 Q971457 Q6337 Q13730 Q2846059 Q13861 Q6319070 Q105075 Q34617 Q2718534 Q5455586 Q6319759 Q25228 Q692946 Q3313430 Q5088519 Q13778 Q90027 Q3656379 Q642314 Q6318695 Q6308 Q10461 Q170213 Q2917 Q5945 Q10896751 Q13812 Q13810 Q6061 Q707771 Q3826003 Q10471 Q170604 Q166709 Q5096 Q3653113 Q13740 Q168856 Q7258563 Q922842 Q8050384 Q3314201 Q106789 Q1468315 Q7414539 Q1769672 Q13845 Q13846 Q13841 Q13840 Q104746 Q1229942 Q103679 Q1232887 Q6313 Q6317 Q13893 Q13895 Q5444794 Q593806 Q3903 Q10551 Q13711 Q2761218 Q778266 Q201697 Q7827062 Q4694508 Q13807 Q170672 Q151938 Q104877 Q3824193 Q106915 Q315840 Q13751 Q13750 Q571947 Q48106 Q2307775 Q5856660 Q2697637 Q10480 Q10483 Q10485 Q10487 Q339637 Q13871 Q13873 Q13875 Q13877 Q13879 Q6013498 Q10554 Q5924968 Q468378 Q35086 Q2367188 Q104940
(c(Q515)|c(Q56061),P1376,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[ANSWERS] have min number of cities or administrative territories as their county seat
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?l WHERE { { ?z property:P1376 ?l . ?l rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q515 } UNION { ?l rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q56061 . ?z property:P1376 ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?e WHERE { { ?n property:P1376 ?e . ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q515 } UNION { ?n property:P1376 ?e . ?e rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q56061 } } GROUP BY ?e } . FILTER ( ?g = ?b ) }
Panao District Sultan Kudarat Sulu Apayao Agusan del Sur Aklan Antique Acarí District San Miguel District Weißenburg-Gunzenhausen Kitzingen Zamboanga Sibugay Putumayo District British Indian Ocean Territory Comtat Venaissin Hela Hudiksvall County Camiguin Camarines Sur Camarines Norte Limburg-Weilburg Coya District Ternopil Oblast Haquira District Oberspreewald-Lausitz Occidental Mindoro Nueva Vizcaya Northern Samar Compostela Valley Örebro County Main-Spessart County of Chiny Haßberge Bad Kissingen Rhön-Grabfeld Västernorrland County Lunahuaná District Vogtlandkreis Aurora Andahuaylillas District Mountain Province Magdalena de Cao District Västmanland County Saint Pierre and Miquelon Lurigancho Fitzcarrald Sicaya District Anguilla Gorizia and Gradisca Antioquia District Chavinillo District Catanduanes German-speaking Community of Belgium Davao Occidental County of Burgundy Pimentel Leipzig Schweinfurt Zakarpattia Oblast Vorpommern-Greifswald District Cloppenburg Llipa District Ifugao Guimaras Altmarkkreis Salzwedel County of Bentheim Chucuito District Aschaffenburg New France Vinnytsia Oblast West Papua Kingdom of Syunik Batanes Chernivtsi Oblast Puerto Inca District Skaraborg County Yavari District Achoma District Värmland County Pozuzo District San José de Sisa District La Sotonera Maguindanao Marinduque Lanao del Norte Laguna Kronoberg County La Jalca District Jämtland County County of Savoy Meissen Görlitz Tawi-Tawi Zambales Fernando Lores District Llata District North Kalimantan Middle Franconia Abra Jesús District County of Artois Leimebamba District Torres Causana District Aguas Verdes Dinagat Islands Dnipropetrovsk Oblast Neutral Moresnet Västerbotten county Querobamba District Södermanland County County of Veldenz Biliran Benguet Bautzen Suhl District Sepahua Mito District San Marcos District Dingolfing-Landau Regen Deggendorf Freyung-Grafenau Kristianstad County Pangasinan Quirino Romblon Sarangani Siquijor Inambari Upper Franconia Huacaybamba County of Hoya South Georgia and the South Sandwich Islands Härnösand County Östergötland County
Weißenburg-Gunzenhausen, Västernorrland County and Vinnytsia Oblast have min number of cities or administrative territories as their county seat
Weißenburg-Gunzenhausen Västernorrland County Vinnytsia Oblast
action argmin
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) ?l WHERE { { ?z property:capital_of ?l . ?l rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:city } UNION { ?l rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:administrative_territorial_entity . ?z property:capital_of ?l } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) ?e WHERE { { ?n property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:city } UNION { ?n property:capital_of ?e . ?e rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:administrative_territorial_entity } } GROUP BY ?e } . FILTER ( ?g = ?b ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q104891
P6
Q502895
USER
Who is the head of the government of that political territory ?
(Q104891,P6,c(Q502895))
action filter_type
action find
entity Q104891
relation P6
type Q502895
['Q104891', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q104891 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Västernorrland County
action filter_type
action find
entity Västernorrland County
relation head of government
type common name
['Västernorrland County', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Västernorrland_County property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q166709
SYSTEM
Did you mean Vinnytsia Oblast ?
Q10453 Q104891 Q166709
(Q10453,P6,c(Q502895)) (Q104891,P6,c(Q502895)) (Q166709,P6,c(Q502895))
[ANSWER]
['Q10453', 'P6', {'concept': 'Q502895'}] ['Q104891', 'P6', {'concept': 'Q502895'}] ['Q166709', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q104891 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Weißenburg-Gunzenhausen Västernorrland County Vinnytsia Oblast
Did you mean Vinnytsia Oblast ?
Vinnytsia Oblast
['Weißenburg-Gunzenhausen', 'head of government', {'concept': 'common name'}] ['Västernorrland County', 'head of government', {'concept': 'common name'}] ['Vinnytsia Oblast', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Västernorrland_County property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Västernorrland County. Could you tell me the answer for that?
(Q104891,P6,c(Q502895))
Q104891
['Q104891', 'P6', {'concept': 'Q502895'}]
['Västernorrland County', 'head of government', {'concept': 'common name'}]
[]
Q5928435
SYSTEM
Bo Källstrand
Q5928435
(Q104891,P6,c(Q502895))
action filter_type
action find
entity Q104891
relation P6
type Q502895
The head of the government of that political territory is Mr [ANSWER]
['Q104891', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?g WHERE { resource:Q104891 property:P6 ?g . ?g rdf:type ontology:Q502895 }
Bo Källstrand
The head of the government of that political territory is Mr Bo Källstrand
Bo Källstrand
action filter_type
action find
entity Västernorrland County
relation head of government
type common name
['Västernorrland County', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?g WHERE { resource:Västernorrland_County property:head_of_government ?g . ?g rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q669370
P1303
Q34379 Q502895
USER
How many musical instruments can less number of people perform with than gusle ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q669370
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?m ) WHERE { ?s rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 . ?h property:P1303 ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1303 resource:Q669370 } } . FILTER ( ?m < ?z ) }
gusle
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity gusle
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?m ) WHERE { ?s rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name . ?h property:instrument ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:common_name . ?o property:instrument resource:gusle } } . FILTER ( ?m < ?z ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q669370
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?m ) WHERE { ?s rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 . ?h property:P1303 ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:Q502895 . ?o property:P1303 resource:Q669370 } } . FILTER ( ?m < ?z ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity gusle
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?f ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?h ) AS ?m ) WHERE { ?s rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name . ?h property:instrument ?s } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { ?o rdf:type ontology:common_name . ?o property:instrument resource:gusle } } . FILTER ( ?m < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q11404
P1303
Q34379 Q502895
USER
And what about drum?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q11404
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:P1303 resource:Q11404 . ?c rdf:type ontology:Q502895 } } . FILTER ( ?a < ?m ) }
drum
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity drum
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:instrument resource:drum . ?c rdf:type ontology:common_name } } . FILTER ( ?a < ?m ) }
[]
musical instrument common name
SYSTEM
52
Q201129 Q424017 Q890073 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q182718 Q490054 Q873588 Q593995 Q1327500 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q120585 Q713298 Q1024685 Q213461 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q11404
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:P1303 resource:Q11404 . ?c rdf:type ontology:Q502895 } } . FILTER ( ?a < ?m ) }
lyre acoustic bass guitar Body percussion davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar Nyckelharpa Ondioline Jinghu player piano electronic musical instrument spoon timpani Wurlitzer electric piano string instrument clavinet Tsuzumi geomungo cabasa harmonium Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar Kayamb Paraguayan harp
52
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity drum
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?a ) WHERE { ?k property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?m ) WHERE { ?c property:instrument resource:drum . ?c rdf:type ontology:common_name } } . FILTER ( ?a < ?m ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q355304 Q271669
USER
Which political territories are around 1194 watercourses and landforms situated in ?
(c(Q355304)|c(Q271669),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q355304
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q271669
value 1194
[[{'concept': 'Q355304'}, {'concept': 'Q271669'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?a WHERE { { ?h property:P17 ?a . ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q355304 } UNION { ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q271669 . ?h property:P17 ?a } } GROUP BY ?a } . FILTER ( ?f = 1194 ) }
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type watercourse
action find_reverse_tuple_counts
relation country
type political territorial entity
type landform
value 1194
[[{'concept': 'watercourse'}, {'concept': 'landform'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?a WHERE { { ?h property:country ?a . ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:watercourse } UNION { ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:landform . ?h property:country ?a } } GROUP BY ?a } . FILTER ( ?f = 1194 ) }
[]
political territorial entity watercourse landform
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q785 Q193619 Q769 Q685 Q699964 Q763 Q13767 Q34617 Q22880 Q9676 Q641138 Q664 Q693551 Q13353 Q766 Q848383 Q5705 Q13726 Q953068 Q16 Q5785 Q35 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q778 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q781 Q691 Q757 Q9648 Q231 Q234 Q2991382 Q40 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q355304)|c(Q271669),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q355304
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q271669
value 1194
[ANSWERS] are around 1194 watercourses and landforms situated in
[[{'concept': 'Q355304'}, {'concept': 'Q271669'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?a WHERE { { ?h property:P17 ?a . ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q355304 } UNION { ?a rdf:type ontology:Q1048835 . ?h rdf:type ontology:Q271669 . ?h property:P17 ?a } } GROUP BY ?a } . FILTER ( ?f = 1194 ) }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Jersey Union of South Africa Grenada Solomon Islands Archduchy of Austria Saint Kitts and Nevis Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves New Zealand Landgraviate of Hesse-Darmstadt Montserrat Jamaica Duchy of Rome Catalonia Albay South-West Africa Canada Cayman Islands Denmark Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands The Bahamas Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Antigua and Barbuda Papua New Guinea Saint Vincent and the Grenadines Falkland Islands Walloon Region Flemish Region County of Provence Austria Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Denmark, Canada and Austria are around 1194 watercourses and landforms situated in
Denmark Canada Austria
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type watercourse
action find_reverse_tuple_counts
relation country
type political territorial entity
type landform
value 1194
[[{'concept': 'watercourse'}, {'concept': 'landform'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?a WHERE { { ?h property:country ?a . ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:watercourse } UNION { ?a rdf:type ontology:political_territorial_entity . ?h rdf:type ontology:landform . ?h property:country ?a } } GROUP BY ?a } . FILTER ( ?f = 1194 ) }
[]