Simple Question (Direct)
Simple Question
Q2923384
P54
Q12973014
USER
Which sports teams are Brad Ausmus a member of ?
(Q2923384,P54,c(Q12973014))
action filter_type
action find
entity Q2923384
relation P54
type Q12973014
['Q2923384', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?f WHERE { resource:Q2923384 property:P54 ?f . ?f rdf:type ontology:Q12973014 }
Brad Ausmus
action filter_type
action find
entity Brad Ausmus
relation member of sports team
type sports team
['Brad Ausmus', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?f WHERE { resource:Brad_Ausmus property:member_of_sports_team ?f . ?f rdf:type ontology:sports_team }
[]
sports team
Q650855 Q334634 Q848117
SYSTEM
Detroit Tigers, Los Angeles Dodgers, Houston Astros
Q848117 Q721134 Q650855 Q334634 Q5617454
(Q2923384,P54,c(Q12973014))
action filter_type
action find
entity Q2923384
relation P54
type Q12973014
The [ANSWERS] are Brad Ausmus a member of
['Q2923384', 'P54', {'concept': 'Q12973014'}]
SELECT DISTINCT ?f WHERE { resource:Q2923384 property:P54 ?f . ?f rdf:type ontology:Q12973014 }
Houston Astros San Diego Padres Detroit Tigers Los Angeles Dodgers Gulf Coast League Yankees
The Detroit Tigers, Los Angeles Dodgers and Houston Astros are Brad Ausmus a member of
Detroit Tigers Los Angeles Dodgers Houston Astros
action filter_type
action find
entity Brad Ausmus
relation member of sports team
type sports team
['Brad Ausmus', 'member of sports team', {'concept': 'sports team'}]
SELECT DISTINCT ?f WHERE { resource:Brad_Ausmus property:member_of_sports_team ?f . ?f rdf:type ontology:sports_team }
[]
Clarification
Simple Question|Single Entity|Indirect
Q848117
P115
Q811430
USER
Which construction is the arena of that sports team ?
(Q848117,P115,c(Q811430))
action filter_type
action find
entity Q848117
relation P115
type Q811430
['Q848117', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?j WHERE { resource:Q848117 property:P115 ?j . ?j rdf:type ontology:Q811430 }
Houston Astros
action filter_type
action find
entity Houston Astros
relation home venue
type construction
['Houston Astros', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?j WHERE { resource:Houston_Astros property:home_venue ?j . ?j rdf:type ontology:construction }
[]
construction
Clarification for simple ques.
Q650855
SYSTEM
Did you mean Detroit Tigers ?
Q650855 Q334634 Q848117
(Q650855,P115,c(Q811430)) (Q334634,P115,c(Q811430)) (Q848117,P115,c(Q811430))
[ANSWER]
['Q650855', 'P115', {'concept': 'Q811430'}] ['Q334634', 'P115', {'concept': 'Q811430'}] ['Q848117', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?j WHERE { resource:Q848117 property:P115 ?j . ?j rdf:type ontology:Q811430 }
Detroit Tigers Los Angeles Dodgers Houston Astros
Did you mean Detroit Tigers ?
Detroit Tigers
['Detroit Tigers', 'home venue', {'concept': 'construction'}] ['Los Angeles Dodgers', 'home venue', {'concept': 'construction'}] ['Houston Astros', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?j WHERE { resource:Houston_Astros property:home_venue ?j . ?j rdf:type ontology:construction }
[]
Simple Question (Coreferenced)
USER
No, I meant Houston Astros. Could you tell me the answer for that?
(Q848117,P115,c(Q811430))
Q848117
['Q848117', 'P115', {'concept': 'Q811430'}]
['Houston Astros', 'home venue', {'concept': 'construction'}]
[]
Q1193671
SYSTEM
Minute Maid Park
Q1193671
(Q848117,P115,c(Q811430))
action filter_type
action find
entity Q848117
relation P115
type Q811430
[ANSWER] is the arena of that sports team
['Q848117', 'P115', {'concept': 'Q811430'}]
SELECT DISTINCT ?j WHERE { resource:Q848117 property:P115 ?j . ?j rdf:type ontology:Q811430 }
Minute Maid Park
Minute Maid Park is the arena of that sports team
Minute Maid Park
action filter_type
action find
entity Houston Astros
relation home venue
type construction
['Houston Astros', 'home venue', {'concept': 'construction'}]
SELECT DISTINCT ?j WHERE { resource:Houston_Astros property:home_venue ?j . ?j rdf:type ontology:construction }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P149
Q2198855 Q811430
USER
Which cultural movements are the architectural style of exactly 1 construction ?
(c(Q811430),P149,c(Q2198855))
action equal
action find_reverse_tuple_counts
relation P149
type Q2198855
type Q811430
value 1
[{'concept': 'Q811430'}, 'P149', {'concept': 'Q2198855'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P149 ?d . ?d rdf:type ontology:Q2198855 . ?u rdf:type ontology:Q811430 } GROUP BY ?d } . FILTER ( ?l = 1 ) }
action equal
action find_reverse_tuple_counts
relation architectural style
type cultural movement
type construction
value 1
[{'concept': 'construction'}, 'architectural style', {'concept': 'cultural movement'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:architectural_style ?d . ?d rdf:type ontology:cultural_movement . ?u rdf:type ontology:construction } GROUP BY ?d } . FILTER ( ?l = 1 ) }
[]
cultural movement construction
Q46825 Q4692 Q131808
SYSTEM
Gothic art, renaissance, Mannerism
Q46825 Q4692 Q131808 Q330369 Q160218
(c(Q811430),P149,c(Q2198855))
action equal
action find_reverse_tuple_counts
relation P149
type Q2198855
type Q811430
value 1
[ANSWERS] are the architectural style of exactly 1 construction
[{'concept': 'Q811430'}, 'P149', {'concept': 'Q2198855'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:P149 ?d . ?d rdf:type ontology:Q2198855 . ?u rdf:type ontology:Q811430 } GROUP BY ?d } . FILTER ( ?l = 1 ) }
Gothic art renaissance Mannerism Arts and Crafts movement New Objectivity
Gothic art, renaissance and Mannerism are the architectural style of exactly 1 construction
Gothic art renaissance Mannerism
action equal
action find_reverse_tuple_counts
relation architectural style
type cultural movement
type construction
value 1
[{'concept': 'construction'}, 'architectural style', {'concept': 'cultural movement'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?u ) AS ?l ) WHERE { ?u property:architectural_style ?d . ?d rdf:type ontology:cultural_movement . ?u rdf:type ontology:construction } GROUP BY ?d } . FILTER ( ?l = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q4692
P136
Q386724 Q41176
USER
How many works and buildings have renaissance as their type ?
(c(Q386724),P136,Q4692) (c(Q41176),P136,Q4692)
action count
action union
action filter_type
action find_reverse
entity Q4692
relation P136
type Q386724
action filter_type
action find_reverse
entity Q4692
relation P136
type Q41176
[{'concept': 'Q386724'}, 'P136', 'Q4692'] [{'concept': 'Q41176'}, 'P136', 'Q4692']
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q41176 ) } }
renaissance
action count
action union
action filter_type
action find_reverse
entity renaissance
relation genre
type work
action filter_type
action find_reverse
entity renaissance
relation genre
type building
[{'concept': 'work'}, 'genre', 'renaissance'] [{'concept': 'building'}, 'genre', 'renaissance']
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:work ) ( ontology:building ) } }
[]
work building
SYSTEM
1 works and 1 buildings
Q3890038 Q25412656
(c(Q386724),P136,Q4692) (c(Q41176),P136,Q4692)
action count
action union
action filter_type
action find_reverse
entity Q4692
relation P136
type Q386724
action filter_type
action find_reverse
entity Q4692
relation P136
type Q41176
[ANSWER]
[{'concept': 'Q386724'}, 'P136', 'Q4692'] [{'concept': 'Q41176'}, 'P136', 'Q4692']
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:Q386724 ) ( ontology:Q41176 ) } }
Palazzo Ducale Madonna and Child
1 works and 1 buildings
action count
action union
action filter_type
action find_reverse
entity renaissance
relation genre
type work
action filter_type
action find_reverse
entity renaissance
relation genre
type building
[{'concept': 'work'}, 'genre', 'renaissance'] [{'concept': 'building'}, 'genre', 'renaissance']
SELECT DISTINCT ( COUNT ( ?i ) AS ?z ) WHERE { ?i rdf:type ?y . VALUES ( ?y ) { ( ontology:work ) ( ontology:building ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4692
P17
Q15617994
USER
Which administrative territory is renaissance present in ?
(Q4692,P17,c(Q15617994))
action filter_type
action find
entity Q4692
relation P17
type Q15617994
['Q4692', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q4692 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
renaissance
action filter_type
action find
entity renaissance
relation country
type designation for an administrative territorial entity
['renaissance', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:renaissance property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
(Q4692,P17,c(Q15617994))
action filter_type
action find
entity Q4692
relation P17
type Q15617994
Which administrative territory is renaissance present in
['Q4692', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?c WHERE { resource:Q4692 property:P17 ?c . ?c rdf:type ontology:Q15617994 }
Russia
Which administrative territory is renaissance present in
Russia
action filter_type
action find
entity renaissance
relation country
type designation for an administrative territorial entity
['renaissance', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:renaissance property:country ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q159 Q20850503
P27
Q502895
USER
Is Jewgeni Wiktorowitsch Prigoschin a civilian of that administrative territory ?
(Q20850503,P27,Q159)
action is_in
entity Q159
action find
entity Q20850503
relation P27
['Q20850503', 'P27', 'Q159']
ASK WHERE { resource:Q20850503 property:P27 resource:Q159 }
Russia Jewgeni Wiktorowitsch Prigoschin
action is_in
entity Russia
action find
entity Jewgeni Wiktorowitsch Prigoschin
relation country of citizenship
['Jewgeni Wiktorowitsch Prigoschin', 'country of citizenship', 'Russia']
ASK WHERE { resource:Jewgeni_Wiktorowitsch_Prigoschin property:country_of_citizenship resource:Russia }
[]
common name
SYSTEM
YES
(Q20850503,P27,Q159)
action is_in
entity Q159
action find
entity Q20850503
relation P27
[ANSWER]
['Q20850503', 'P27', 'Q159']
ASK WHERE { resource:Q20850503 property:P27 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Jewgeni Wiktorowitsch Prigoschin
relation country of citizenship
['Jewgeni Wiktorowitsch Prigoschin', 'country of citizenship', 'Russia']
ASK WHERE { resource:Jewgeni_Wiktorowitsch_Prigoschin property:country_of_citizenship resource:Russia }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q145 Q159
P27
Q502895
USER
Which people are a citizen of Russia and United Kingdom ?
AND((c(Q502895),P27,Q159), (c(Q502895),P27,Q145))
action filter_type
action intersection
action find_reverse
entity Q159
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q159'], [{'concept': 'Q502895'}, 'P27', 'Q145']]}
SELECT DISTINCT ?a WHERE { ?a property:P27 resource:Q159 . ?a property:P27 resource:Q145 . ?a rdf:type ontology:Q502895 }
United Kingdom Russia
action filter_type
action intersection
action find_reverse
entity Russia
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Russia'], [{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}
SELECT DISTINCT ?a WHERE { ?a property:country_of_citizenship resource:Russia . ?a property:country_of_citizenship resource:United_Kingdom . ?a rdf:type ontology:common_name }
[]
common name
Q4150007 Q4341367 Q368240 Q16745182 Q4197533 Q502396 Q160154 Q15220775 Q4095653 Q2513271
SYSTEM
Some of them are Leonid Petrovitsj Grisjtsjoek, Sergei Pavlenko, Kirill Horoshenkov, Aijo Beness, Nikolay Georgievitsj Ignatev, Andrey Kapitsa, Evgeny Kissin, Artūrs Cimermanis, Vladimir Iosifovitsj Braginskiy, Vera Broido
Q2513271 Q160154 Q1160181 Q15220775 Q4150007 Q4197533 Q4046107 Q502396 Q4242761 Q106494 Q4475532 Q944421 Q1093588 Q171428 Q4341367 Q16745182 Q368240 Q4143497 Q4247437 Q4095653
AND((c(Q502895),P27,Q159), (c(Q502895),P27,Q145))
action filter_type
action intersection
action find_reverse
entity Q159
relation P27
action find_reverse
entity Q145
relation P27
type Q502895
[ANSWERS] are a citizen of Russia and United Kingdom
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q159'], [{'concept': 'Q502895'}, 'P27', 'Q145']]}
SELECT DISTINCT ?a WHERE { ?a property:P27 resource:Q159 . ?a property:P27 resource:Q145 . ?a rdf:type ontology:Q502895 }
Vera Broido Evgeny Kissin Daniel Broido Artūrs Cimermanis Leonid Petrovitsj Grisjtsjoek Nikolay Georgievitsj Ignatev Oxxxymiron Andrey Kapitsa Victor Krylov Konstantin Novoselov Olga Umnova Dmitri Smirnov Nikolai Demidenko Roman Abramovich Sergei Pavlenko Aijo Beness Kirill Horoshenkov Alexander Nikolaevich Gorban Yuri Kuper Vladimir Iosifovitsj Braginskiy
Leonid Petrovitsj Grisjtsjoek, Sergei Pavlenko, Kirill Horoshenkov, Aijo Beness, Nikolay Georgievitsj Ignatev, Andrey Kapitsa, Evgeny Kissin, Artūrs Cimermanis, Vladimir Iosifovitsj Braginskiy and Vera Broido are a citizen of Russia and United Kingdom
Leonid Petrovitsj Grisjtsjoek Sergei Pavlenko Kirill Horoshenkov Aijo Beness Nikolay Georgievitsj Ignatev Andrey Kapitsa Evgeny Kissin Artūrs Cimermanis Vladimir Iosifovitsj Braginskiy Vera Broido
action filter_type
action intersection
action find_reverse
entity Russia
relation country of citizenship
action find_reverse
entity United Kingdom
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Russia'], [{'concept': 'common name'}, 'country of citizenship', 'United Kingdom']]}
SELECT DISTINCT ?a WHERE { ?a property:country_of_citizenship resource:Russia . ?a property:country_of_citizenship resource:United_Kingdom . ?a rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q20090 Q15220775
P47 P27
Q15617994
USER
Which administrative territories are Artūrs Cimermanis an inhabitant of or are bordered by Garessio ?
OR((Q15220775,P27,c(Q15617994)), (Q20090,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15220775
relation P27
action find
entity Q20090
relation P47
type Q15617994
{'OR': [['Q15220775', 'P27', {'concept': 'Q15617994'}], ['Q20090', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q15220775 property:P27 ?x } UNION { resource:Q20090 property:P47 ?x } } }
Garessio Artūrs Cimermanis
action filter_type
action union
action find
entity Artūrs Cimermanis
relation country of citizenship
action find
entity Garessio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Artūrs Cimermanis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Garessio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Artūrs_Cimermanis property:country_of_citizenship ?x } UNION { resource:Garessio property:shares_border_with ?x } } }
[]
designation for an administrative territorial entity
Q20278 Q145 Q211 Q20611 Q270606 Q270527 Q20292 Q20408 Q159 Q270943
SYSTEM
Some of them are Ormea, United Kingdom, Latvia, Viola, Castelvecchio di Rocca Barbena, Bardineto, Pamparato, Roburent, Russia, Nasino
Q270527 Q211 Q159 Q145 Q20278 Q20374 Q270732 Q270578 Q270606 Q20408 Q20292 Q270943 Q20611
OR((Q15220775,P27,c(Q15617994)), (Q20090,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q15220775
relation P27
action find
entity Q20090
relation P47
type Q15617994
[ANSWERS] are Artūrs Cimermanis an inhabitant of or are bordered by Garessio
{'OR': [['Q15220775', 'P27', {'concept': 'Q15617994'}], ['Q20090', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q15220775 property:P27 ?x } UNION { resource:Q20090 property:P47 ?x } } }
Bardineto Latvia Russia United Kingdom Ormea Priola Erli Calizzano Castelvecchio di Rocca Barbena Roburent Pamparato Nasino Viola
Ormea, United Kingdom, Latvia, Viola, Castelvecchio di Rocca Barbena, Bardineto, Pamparato, Roburent, Russia and Nasino are Artūrs Cimermanis an inhabitant of or are bordered by Garessio
Ormea United Kingdom Latvia Viola Castelvecchio di Rocca Barbena Bardineto Pamparato Roburent Russia Nasino
action filter_type
action union
action find
entity Artūrs Cimermanis
relation country of citizenship
action find
entity Garessio
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Artūrs Cimermanis', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Garessio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Artūrs_Cimermanis property:country_of_citizenship ?x } UNION { resource:Garessio property:shares_border_with ?x } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q2088357
USER
How many administrative territories are the countries of origin of more number of collectables or musical ensembles than that administrative territory ?
(c(Q2342494)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q2342494'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
[[{'concept': 'collectable'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
designation for an administrative territorial entity collectable musical ensemble
Comparative|Count over More/Less|Mult. entity type|Clarification
Q20611
SYSTEM
Did you mean Viola ?
(c(Q2342494)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Did you mean Viola ?
Viola
[[{'concept': 'collectable'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant United Kingdom. Could you tell me the answer for that?
(c(Q2342494)|c(Q2088357),P495,c(Q15617994))
Q145
[[{'concept': 'Q2342494'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'collectable'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(c(Q2342494)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q2342494 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
United States of America
1
[[{'concept': 'collectable'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:collectable . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P30
Q2221906
USER
Which geographic location is United Kingdom located in ?
(Q145,P30,c(Q2221906))
action filter_type
action find
entity Q145
relation P30
type Q2221906
['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2221906 . resource:Q145 property:P30 ?y }
United Kingdom
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:geographic_location . resource:United_Kingdom property:continent ?y }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q145,P30,c(Q2221906))
action filter_type
action find
entity Q145
relation P30
type Q2221906
Which geographic location is United Kingdom located in
['Q145', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2221906 . resource:Q145 property:P30 ?y }
Europe
Which geographic location is United Kingdom located in
Europe
action filter_type
action find
entity United Kingdom
relation continent
type geographic location
['United Kingdom', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:geographic_location . resource:United_Kingdom property:continent ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P6
Q502895
USER
Which people have Russia as their heads of government ?
(Q159,P6,c(Q502895))
action filter_type
action find
entity Q159
relation P6
type Q502895
['Q159', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q159 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Russia
action filter_type
action find
entity Russia
relation head of government
type common name
['Russia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Russia property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
common name
Q7747 Q34453 Q270529
SYSTEM
Vladimir Putin, Boris Yeltsin, Yevgeny Primakov
Q23530 Q313989 Q270529 Q313915 Q62551 Q82695 Q34453 Q147425 Q317667 Q190884 Q7747 Q150080
(Q159,P6,c(Q502895))
action filter_type
action find
entity Q159
relation P6
type Q502895
[ANSWERS] have Russia as their heads of government
['Q159', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q159 property:P6 ?k . ?k rdf:type ontology:Q502895 }
Dmitry Medvedev Sergei Stepashin Yevgeny Primakov Sergey Kiriyenko Mikhail Kasyanov Yegor Gaidar Boris Yeltsin Viktor Zubkov Viktor Khristenko Viktor Chernomyrdin Vladimir Putin Mikhail Fradkov
Vladimir Putin, Boris Yeltsin and Yevgeny Primakov have Russia as their heads of government
Vladimir Putin Boris Yeltsin Yevgeny Primakov
action filter_type
action find
entity Russia
relation head of government
type common name
['Russia', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Russia property:head_of_government ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q159
P463
Q43229
USER
Which organizations were Russia a member of ?
(Q159,P463,c(Q43229))
action filter_type
action find
entity Q159
relation P463
type Q43229
['Q159', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?o WHERE { resource:Q159 property:P463 ?o . ?o rdf:type ontology:Q43229 }
Russia
action filter_type
action find
entity Russia
relation member of
type organization
['Russia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?o WHERE { resource:Russia property:member_of ?o . ?o rdf:type ontology:organization }
[]
organization
Q7779 Q7825 Q191384
SYSTEM
Commonwealth of Independent States, World Trade Organization, International Bank for Reconstruction and Development
Q191384 Q7779 Q656801 Q380340 Q485207 Q7825 Q170481 Q243630 Q827525
(Q159,P463,c(Q43229))
action filter_type
action find
entity Q159
relation P463
type Q43229
Russia were the [ANSWERS]
['Q159', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?o WHERE { resource:Q159 property:P463 ?o . ?o rdf:type ontology:Q43229 }
International Bank for Reconstruction and Development Commonwealth of Independent States International Finance Corporation Organization of the Black Sea Economic Cooperation Shanghai Cooperation Organisation World Trade Organization Asia-Pacific Economic Cooperation BRICS International Development Association
Russia were the Commonwealth of Independent States, World Trade Organization and International Bank for Reconstruction and Development
Commonwealth of Independent States World Trade Organization International Bank for Reconstruction and Development
action filter_type
action find
entity Russia
relation member of
type organization
['Russia', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?o WHERE { resource:Russia property:member_of ?o . ?o rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7779
P36
Q56061
USER
What is the capital of that organization ?
(Q7779,P36,c(Q56061))
action filter_type
action find
entity Q7779
relation P36
type Q56061
['Q7779', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q7779 property:P36 ?x }
Commonwealth of Independent States
action filter_type
action find
entity Commonwealth of Independent States
relation capital
type administrative territorial entity
['Commonwealth of Independent States', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Commonwealth_of_Independent_States property:capital ?x }
[]
administrative territorial entity
Clarification for simple ques.
Q7779
SYSTEM
Did you mean Commonwealth of Independent States ?
Q7779 Q7825 Q191384
(Q7779,P36,c(Q56061)) (Q7825,P36,c(Q56061)) (Q191384,P36,c(Q56061))
[ANSWER]
['Q7779', 'P36', {'concept': 'Q56061'}] ['Q7825', 'P36', {'concept': 'Q56061'}] ['Q191384', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q7779 property:P36 ?x }
Commonwealth of Independent States World Trade Organization International Bank for Reconstruction and Development
Did you mean Commonwealth of Independent States ?
Commonwealth of Independent States
['Commonwealth of Independent States', 'capital', {'concept': 'administrative territorial entity'}] ['World Trade Organization', 'capital', {'concept': 'administrative territorial entity'}] ['International Bank for Reconstruction and Development', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Commonwealth_of_Independent_States property:capital ?x }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7779,P36,c(Q56061))
['Q7779', 'P36', {'concept': 'Q56061'}]
['Commonwealth of Independent States', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q2280
SYSTEM
Minsk
Q2280
(Q7779,P36,c(Q56061))
action filter_type
action find
entity Q7779
relation P36
type Q56061
The capital of that organization is [ANSWER]
['Q7779', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q7779 property:P36 ?x }
Minsk
The capital of that organization is Minsk
Minsk
action filter_type
action find
entity Commonwealth of Independent States
relation capital
type administrative territorial entity
['Commonwealth of Independent States', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Commonwealth_of_Independent_States property:capital ?x }
[]