Simple Question (Direct)
Simple Question
Q4095446
P641
Q349
USER
What was the sport that Spomenko Bošnjak was a part of ?
(Q4095446,P641,c(Q349))
action filter_type
action find
entity Q4095446
relation P641
type Q349
['Q4095446', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q4095446 property:P641 ?r }
Spomenko Bošnjak
action filter_type
action find
entity Spomenko Bošnjak
relation sport
type sport
['Spomenko Bošnjak', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Spomenko_Bošnjak property:sport ?r }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q4095446,P641,c(Q349))
action filter_type
action find
entity Q4095446
relation P641
type Q349
The sport that Spomenko Bošnjak was a part of was the [ANSWER]
['Q4095446', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q349 . resource:Q4095446 property:P641 ?r }
association football
The sport that Spomenko Bošnjak was a part of was the association football
association football
action filter_type
action find
entity Spomenko Bošnjak
relation sport
type sport
['Spomenko Bošnjak', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:sport . resource:Spomenko_Bošnjak property:sport ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4095446
P19
Q7275
USER
Where was Spomenko Bošnjak born ?
(Q4095446,P19,c(Q7275))
action filter_type
action find
entity Q4095446
relation P19
type Q7275
['Q4095446', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { resource:Q4095446 property:P19 ?s . ?s rdf:type ontology:Q7275 }
Spomenko Bošnjak
action filter_type
action find
entity Spomenko Bošnjak
relation place of birth
type state
['Spomenko Bošnjak', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { resource:Spomenko_Bošnjak property:place_of_birth ?s . ?s rdf:type ontology:state }
[]
state
Q83286
SYSTEM
Socialist Federal Republic of Yugoslavia
Q83286
(Q4095446,P19,c(Q7275))
action filter_type
action find
entity Q4095446
relation P19
type Q7275
Spomenko Bošnjak was born in [ANSWER]
['Q4095446', 'P19', {'concept': 'Q7275'}]
SELECT DISTINCT ?s WHERE { resource:Q4095446 property:P19 ?s . ?s rdf:type ontology:Q7275 }
Socialist Federal Republic of Yugoslavia
Spomenko Bošnjak was born in Socialist Federal Republic of Yugoslavia
Socialist Federal Republic of Yugoslavia
action filter_type
action find
entity Spomenko Bošnjak
relation place of birth
type state
['Spomenko Bošnjak', 'place of birth', {'concept': 'state'}]
SELECT DISTINCT ?s WHERE { resource:Spomenko_Bošnjak property:place_of_birth ?s . ?s rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4095446
P27
Q15617994
USER
Which administrative territories are that person a civilian of ?
(Q83286,P27,c(Q15617994))
action filter_type
action find
entity Q4095446
relation P27
type Q15617994
['Q83286', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q4095446 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Spomenko Bošnjak
action filter_type
action find
entity Spomenko Bošnjak
relation country of citizenship
type designation for an administrative territorial entity
['Socialist Federal Republic of Yugoslavia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Spomenko_Bošnjak property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q225 Q224
SYSTEM
Bosnia and Herzegovina, Croatia
Q225 Q224
(Q83286,P27,c(Q15617994))
action filter_type
action find
entity Q4095446
relation P27
type Q15617994
[ANSWERS] are that person a civilian of
['Q83286', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q4095446 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Bosnia and Herzegovina Croatia
Bosnia and Herzegovina and Croatia are that person a civilian of
Bosnia and Herzegovina Croatia
action filter_type
action find
entity Spomenko Bošnjak
relation country of citizenship
type designation for an administrative territorial entity
['Socialist Federal Republic of Yugoslavia', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Spomenko_Bošnjak property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q58202
P85
Q484692 Q7725634 Q7275
USER
How many states have approximately the same number of hymns or literary works as their national anthem as July Monarchy ?
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q58202
relation P85
type Q484692
type Q7725634
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Q58202 property:P85 ?v . { VALUES ( ?g ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?v rdf:type ?g } } } . FILTER ( ?p = ?y ) }
July Monarchy
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity July Monarchy
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:July_Monarchy property:anthem ?v . { VALUES ( ?g ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?v rdf:type ?g } } } . FILTER ( ?p = ?y ) }
[]
hymn literary work state
SYSTEM
117
Q241748 Q211853 Q180573 Q797527 Q1274468 Q2414171 Q218023 Q245160 Q25279 Q174193 Q965174 Q233263 Q1028835 Q330988 Q139670 Q27306 Q457167 Q533558 Q167360 Q1044536 Q209065 Q21203 Q713750 Q209062 Q1998866 Q207162 Q11196 Q2006542 Q131964 Q133356 Q2454585 Q33946 Q83572 Q191077 Q2638486 Q28278 Q16957 Q1649871 Q941881 Q870055 Q842794 Q1057542 Q652560 Q550374 Q178038 Q30623 Q203493 Q867778 Q147909 Q980 Q58202 Q1709185 Q154401 Q180393 Q112558 Q252580 Q518101 Q37024 Q16410 Q153128 Q83286 Q173761 Q207272 Q25227 Q15864 Q738144 Q36704 Q950644 Q153015 Q49910 Q386496 Q696242 Q71092 Q217230 Q170072 Q170174 Q212056 Q210542 Q7318 Q1072140 Q170468 Q146328 Q248452 Q8733 Q371334 Q853348 Q824489 Q2342822 Q189988 Q1192936 Q615902 Q708865 Q498735 Q491559 Q154195 Q1072362 Q1775277 Q121932 Q146761 Q153660 Q70972 Q497777 Q206411 Q12548 Q211274 Q6500954 Q26988 Q26273 Q139319 Q171150 Q487687 Q370736 Q541455 Q41304 Q797422 Q216173 Q178469
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q58202
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q484692 ) ( ontology:Q7725634 ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:Q58202 property:P85 ?v . { VALUES ( ?g ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?v rdf:type ?g } } } . FILTER ( ?p = ?y ) }
Kingdom of Serbia Republic of Serbian Krajina South Vietnam British Togoland Republic of Bosnia and Herzegovina First Brazilian Republic Orange Free State Democratic Republic of Georgia Curaçao United Kingdom of Great Britain and Ireland Coalition Provisional Authority Second Republic of South Korea British Cameroons Democratic Kampuchea Democratic Republic of Armenia Kingdom of Prussia West Ukrainian People's Republic Kingdom of Croatia-Slavonia First Portuguese Republic Spain under the Restoration Kingdom of Greece Aruba West Germany Socialist Republic of Croatia Czech and Slovak Federal Republic Bourbon Restoration Republika Srpska Dominion of Pakistan Austrian Empire Ukrainian Soviet Socialist Republic History of Czechoslovakia Czechoslovakia Sikh Empire Kingdom of Yugoslavia Kingdom of Cambodia Provisional Government of the Republic of Korea East Germany Kingdom of Poland Netherlands New Guinea Kingdom of Laos Socialist Republic of Romania Republic of Hawaii West Indies Federation South African Republic Second Spanish Republic Manchukuo Kingdom of Romania People's Republic of Kampuchea Kingdom of Bulgaria Bavaria July Monarchy Kingdom of Spain under Joseph Bonaparte Slovak Republic Kingdom of the Two Sicilies Republic of Saugeais Duchy of Modena and Reggio First Republic of Austria Serbia and Montenegro People's Republic of Hungary Independent State of Croatia Socialist Federal Republic of Yugoslavia Lithuanian Soviet Socialist Republic Second Polish Republic Netherlands Antilles United Kingdom of the Netherlands United Provinces of the Río de la Plata Yugoslavia Carpatho-Ukraine Kingdom of Saxony Colony of Aden Kingdom of Montenegro Reorganized National Government of China Second French Empire Empire of Brazil Dutch Republic Papal States Mongolian People's Republic Second Brazilian Republic Nazi Germany Roman Republic United Arab Republic Commonwealth of the Philippines British North America Qing dynasty Second Mexican Empire Czechoslovak Socialist Republic Estado Novo West Pakistan Central African Empire Kingdom of Burundi Kingdom of Finland Reformed Government of the Republic of China division of Korea First Republic of South Korea Kingdom of Bavaria Provisional Revolutionary Government of the Republic of South Vietnam Dominion of India People's Republic of Bulgaria Hatay State Italian Social Republic Kingdom of France First Spanish Republic Democratic Republic of Azerbaijan Holy Roman Empire People's Republic of Poland Zaire Cook Islands Sint Maarten Russian Republic Kingdom of Hungary Third Republic of South Korea Cape Colony Anglo-Egyptian Sudan Weimar Republic Republic of Upper Volta Free City of Danzig Biafra
117
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity July Monarchy
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?o ) AS ?p ) WHERE { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:hymn ) ( ontology:literary_work ) } } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?y ) WHERE { resource:July_Monarchy property:anthem ?v . { VALUES ( ?g ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?v rdf:type ?g } } } . FILTER ( ?p = ?y ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q178038
P85
Q484692 Q7725634 Q7275
USER
And what about Second Spanish Republic?
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q178038
relation P85
type Q484692
type Q7725634
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?x WHERE { VALUES ( ?n ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?q rdf:type ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { resource:Q178038 property:P85 ?m . { { ?m rdf:type ontology:Q484692 } UNION { ?m rdf:type ontology:Q7725634 } } } } . FILTER ( ?v = ?k ) }
Second Spanish Republic
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity Second Spanish Republic
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?x WHERE { VALUES ( ?n ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?q rdf:type ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { resource:Second_Spanish_Republic property:anthem ?m . { { ?m rdf:type ontology:hymn } UNION { ?m rdf:type ontology:literary_work } } } } . FILTER ( ?v = ?k ) }
[]
hymn literary work state
SYSTEM
117
Q241748 Q211853 Q180573 Q797527 Q1274468 Q2414171 Q218023 Q245160 Q25279 Q174193 Q965174 Q233263 Q1028835 Q330988 Q139670 Q27306 Q457167 Q533558 Q167360 Q1044536 Q209065 Q21203 Q713750 Q209062 Q1998866 Q207162 Q11196 Q2006542 Q131964 Q133356 Q2454585 Q33946 Q83572 Q191077 Q2638486 Q28278 Q16957 Q1649871 Q941881 Q870055 Q842794 Q1057542 Q652560 Q550374 Q178038 Q30623 Q203493 Q867778 Q147909 Q980 Q58202 Q1709185 Q154401 Q180393 Q112558 Q252580 Q518101 Q37024 Q16410 Q153128 Q83286 Q173761 Q207272 Q25227 Q15864 Q738144 Q36704 Q950644 Q153015 Q49910 Q386496 Q696242 Q71092 Q217230 Q170072 Q170174 Q212056 Q210542 Q7318 Q1072140 Q170468 Q146328 Q248452 Q8733 Q371334 Q853348 Q824489 Q2342822 Q189988 Q1192936 Q615902 Q708865 Q498735 Q491559 Q154195 Q1072362 Q1775277 Q121932 Q146761 Q153660 Q70972 Q497777 Q206411 Q12548 Q211274 Q6500954 Q26988 Q26273 Q139319 Q171150 Q487687 Q370736 Q541455 Q41304 Q797422 Q216173 Q178469
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q178038
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?x WHERE { VALUES ( ?n ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } . ?q rdf:type ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { resource:Q178038 property:P85 ?m . { { ?m rdf:type ontology:Q484692 } UNION { ?m rdf:type ontology:Q7725634 } } } } . FILTER ( ?v = ?k ) }
Kingdom of Serbia Republic of Serbian Krajina South Vietnam British Togoland Republic of Bosnia and Herzegovina First Brazilian Republic Orange Free State Democratic Republic of Georgia Curaçao United Kingdom of Great Britain and Ireland Coalition Provisional Authority Second Republic of South Korea British Cameroons Democratic Kampuchea Democratic Republic of Armenia Kingdom of Prussia West Ukrainian People's Republic Kingdom of Croatia-Slavonia First Portuguese Republic Spain under the Restoration Kingdom of Greece Aruba West Germany Socialist Republic of Croatia Czech and Slovak Federal Republic Bourbon Restoration Republika Srpska Dominion of Pakistan Austrian Empire Ukrainian Soviet Socialist Republic History of Czechoslovakia Czechoslovakia Sikh Empire Kingdom of Yugoslavia Kingdom of Cambodia Provisional Government of the Republic of Korea East Germany Kingdom of Poland Netherlands New Guinea Kingdom of Laos Socialist Republic of Romania Republic of Hawaii West Indies Federation South African Republic Second Spanish Republic Manchukuo Kingdom of Romania People's Republic of Kampuchea Kingdom of Bulgaria Bavaria July Monarchy Kingdom of Spain under Joseph Bonaparte Slovak Republic Kingdom of the Two Sicilies Republic of Saugeais Duchy of Modena and Reggio First Republic of Austria Serbia and Montenegro People's Republic of Hungary Independent State of Croatia Socialist Federal Republic of Yugoslavia Lithuanian Soviet Socialist Republic Second Polish Republic Netherlands Antilles United Kingdom of the Netherlands United Provinces of the Río de la Plata Yugoslavia Carpatho-Ukraine Kingdom of Saxony Colony of Aden Kingdom of Montenegro Reorganized National Government of China Second French Empire Empire of Brazil Dutch Republic Papal States Mongolian People's Republic Second Brazilian Republic Nazi Germany Roman Republic United Arab Republic Commonwealth of the Philippines British North America Qing dynasty Second Mexican Empire Czechoslovak Socialist Republic Estado Novo West Pakistan Central African Empire Kingdom of Burundi Kingdom of Finland Reformed Government of the Republic of China division of Korea First Republic of South Korea Kingdom of Bavaria Provisional Revolutionary Government of the Republic of South Vietnam Dominion of India People's Republic of Bulgaria Hatay State Italian Social Republic Kingdom of France First Spanish Republic Democratic Republic of Azerbaijan Holy Roman Empire People's Republic of Poland Zaire Cook Islands Sint Maarten Russian Republic Kingdom of Hungary Third Republic of South Korea Cape Colony Anglo-Egyptian Sudan Weimar Republic Republic of Upper Volta Free City of Danzig Biafra
117
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity Second Spanish Republic
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?v ) ?x WHERE { VALUES ( ?n ) { ( ontology:literary_work ) ( ontology:hymn ) } . ?q rdf:type ?n } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?k ) WHERE { resource:Second_Spanish_Republic property:anthem ?m . { { ?m rdf:type ontology:hymn } UNION { ?m rdf:type ontology:literary_work } } } } . FILTER ( ?v = ?k ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q178038
P194
Q11204
USER
Which legislature governs that state ?
action filter_type
action find
entity Q178038
relation P194
type Q11204
SELECT DISTINCT ?s WHERE { resource:Q178038 property:P194 ?s . ?s rdf:type ontology:Q11204 }
Second Spanish Republic
action filter_type
action find
entity Second Spanish Republic
relation legislative body
type legislature
SELECT DISTINCT ?s WHERE { resource:Second_Spanish_Republic property:legislative_body ?s . ?s rdf:type ontology:legislature }
[]
legislature
Q539149
SYSTEM
Congress of Deputies
Q539149
action filter_type
action find
entity Q178038
relation P194
type Q11204
[ANSWER] governs that state
SELECT DISTINCT ?s WHERE { resource:Q178038 property:P194 ?s . ?s rdf:type ontology:Q11204 }
Congress of Deputies
Congress of Deputies governs that state
Congress of Deputies
action filter_type
action find
entity Second Spanish Republic
relation legislative body
type legislature
SELECT DISTINCT ?s WHERE { resource:Second_Spanish_Republic property:legislative_body ?s . ?s rdf:type ontology:legislature }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q539149 Q29
P17
Q15617994
USER
Is that legislature located in Spain ?
(Q539149,P17,Q29)
action is_in
entity Q29
action find
entity Q539149
relation P17
['Q539149', 'P17', 'Q29']
ASK WHERE { resource:Q539149 property:P17 resource:Q29 }
Congress of Deputies Spain
action is_in
entity Spain
action find
entity Congress of Deputies
relation country
['Congress of Deputies', 'country', 'Spain']
ASK WHERE { resource:Congress_of_Deputies property:country resource:Spain }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q539149,P17,Q29)
action is_in
entity Q29
action find
entity Q539149
relation P17
[ANSWER]
['Q539149', 'P17', 'Q29']
ASK WHERE { resource:Q539149 property:P17 resource:Q29 }
Yes
action is_in
entity Spain
action find
entity Congress of Deputies
relation country
['Congress of Deputies', 'country', 'Spain']
ASK WHERE { resource:Congress_of_Deputies property:country resource:Spain }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20084882 Q178038
P1376
Q56061
USER
Which administrative territories are the capital of Second Spanish Republic or Sulgachchinsky Rural Okrug ?
OR((c(Q56061),P1376,Q178038), (c(Q56061),P1376,Q20084882))
action filter_type
action union
action find_reverse
entity Q178038
relation P1376
action find_reverse
entity Q20084882
relation P1376
type Q56061
{'OR': [[{'concept': 'Q56061'}, 'P1376', 'Q178038'], [{'concept': 'Q56061'}, 'P1376', 'Q20084882']]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?i ) { ( resource:Q178038 ) ( resource:Q20084882 ) } . ?a property:P1376 ?i } . ?a rdf:type ontology:Q56061 }
Sulgachchinsky Rural Okrug Second Spanish Republic
action filter_type
action union
action find_reverse
entity Second Spanish Republic
relation capital of
action find_reverse
entity Sulgachchinsky Rural Okrug
relation capital of
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'capital of', 'Second Spanish Republic'], [{'concept': 'administrative territorial entity'}, 'capital of', 'Sulgachchinsky Rural Okrug']]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?i ) { ( resource:Second_Spanish_Republic ) ( resource:Sulgachchinsky_Rural_Okrug ) } . ?a property:capital_of ?i } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807 Q16897310
SYSTEM
Madrid, Sulgachchy
Q2807 Q16897310
OR((c(Q56061),P1376,Q178038), (c(Q56061),P1376,Q20084882))
action filter_type
action union
action find_reverse
entity Q178038
relation P1376
action find_reverse
entity Q20084882
relation P1376
type Q56061
[ANSWERS] are the capital of Second Spanish Republic or Sulgachchinsky Rural Okrug
{'OR': [[{'concept': 'Q56061'}, 'P1376', 'Q178038'], [{'concept': 'Q56061'}, 'P1376', 'Q20084882']]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?i ) { ( resource:Q178038 ) ( resource:Q20084882 ) } . ?a property:P1376 ?i } . ?a rdf:type ontology:Q56061 }
Madrid Sulgachchy
Madrid and Sulgachchy are the capital of Second Spanish Republic or Sulgachchinsky Rural Okrug
Madrid Sulgachchy
action filter_type
action union
action find_reverse
entity Second Spanish Republic
relation capital of
action find_reverse
entity Sulgachchinsky Rural Okrug
relation capital of
type administrative territorial entity
{'OR': [[{'concept': 'administrative territorial entity'}, 'capital of', 'Second Spanish Republic'], [{'concept': 'administrative territorial entity'}, 'capital of', 'Sulgachchinsky Rural Okrug']]}
SELECT DISTINCT ?a WHERE { { VALUES ( ?i ) { ( resource:Second_Spanish_Republic ) ( resource:Sulgachchinsky_Rural_Okrug ) } . ?a property:capital_of ?i } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q539149
P463 P21
Q502895
USER
Which people are a member of Congress of Deputies and have male as the sex ?
AND((c(Q502895),P463,Q539149), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q539149
relation P463
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P463', 'Q539149'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h property:P463 resource:Q539149 . ?h property:P21 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
male Congress of Deputies
action filter_type
action intersection
action find_reverse
entity Congress of Deputies
relation member of
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of', 'Congress of Deputies'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h property:member_of resource:Congress_of_Deputies . ?h property:gender resource:male . ?h rdf:type ontology:common_name }
[]
common name
Q434529 Q13451003 Q11935287 Q15260746 Q14542633 Q15161278 Q15268683 Q15134036 Q15109875 Q15272950
SYSTEM
Some of them are Baldomero Espartero, Prince of Vergara, Manuel de Sárraga, Marcos Vizcaya Retana, Jerónimo Nieto González, Jesús López-Medel, Fernando Gimeno Marín, Juan Ramallo Massanet, Enric Ribas Marí, Pablo Pardo Yáñez, Francisco Granados Calero
Q15161278 Q13451003 Q434529 Q15109899 Q11940727 Q15109875 Q14639056 Q14542633 Q15272950 Q11935287 Q15104278 Q15077313 Q15071754 Q15260746 Q11954643 Q15268683 Q15134036
AND((c(Q502895),P463,Q539149), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q539149
relation P463
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] are a member of Congress of Deputies and have male as the sex
{'AND': [[{'concept': 'Q502895'}, 'P463', 'Q539149'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?h WHERE { ?h property:P463 resource:Q539149 . ?h property:P21 resource:Q6581097 . ?h rdf:type ontology:Q502895 }
Fernando Gimeno Marín Manuel de Sárraga Baldomero Espartero, Prince of Vergara Diego Pérez Espejo Pedro Sodupe Corcuera Pablo Pardo Yáñez Leopoldo Torres Boursault Jesús López-Medel Francisco Granados Calero Marcos Vizcaya Retana Avelino Pérez Fernández Blas Camacho Zancada José Antonio Santos Miñón Jerónimo Nieto González Vicente Sales Juan Ramallo Massanet Enric Ribas Marí
Baldomero Espartero, Prince of Vergara, Manuel de Sárraga, Marcos Vizcaya Retana, Jerónimo Nieto González, Jesús López-Medel, Fernando Gimeno Marín, Juan Ramallo Massanet, Enric Ribas Marí, Pablo Pardo Yáñez and Francisco Granados Calero are a member of Congress of Deputies and have male as the sex
Baldomero Espartero, Prince of Vergara Manuel de Sárraga Marcos Vizcaya Retana Jerónimo Nieto González Jesús López-Medel Fernando Gimeno Marín Juan Ramallo Massanet Enric Ribas Marí Pablo Pardo Yáñez Francisco Granados Calero
action filter_type
action intersection
action find_reverse
entity Congress of Deputies
relation member of
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'member of', 'Congress of Deputies'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?h WHERE { ?h property:member_of resource:Congress_of_Deputies . ?h property:gender resource:male . ?h rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q434529 Q13451003 Q11935287 Q15260746 Q14542633 Q15161278 Q15268683 Q15134036 Q15109875 Q15272950
P937
Q56061
USER
What are the work locations of Baldomero Espartero, Prince of Vergara, Manuel de Sárraga, Marcos Vizcaya Retana, Jerónimo Nieto González, Jesús López-Medel, Fernando Gimeno Marín, Juan Ramallo Massanet, Enric Ribas Marí, Pablo Pardo Yáñez and Francisco Granados Calero ?
(Q434529,P937,c(Q56061)) (Q13451003,P937,c(Q56061)) (Q11935287,P937,c(Q56061)) (Q15260746,P937,c(Q56061)) (Q14542633,P937,c(Q56061)) (Q15161278,P937,c(Q56061)) (Q15268683,P937,c(Q56061)) (Q15134036,P937,c(Q56061)) (Q15109875,P937,c(Q56061)) (Q15272950,P937,c(Q56061))
action union
action filter_type
action find
entity Q434529
relation P937
type Q56061
action filter_type
action find
entity Q13451003
relation P937
type Q56061
action filter_type
action find
entity Q11935287
relation P937
type Q56061
action filter_type
action find
entity Q15260746
relation P937
type Q56061
action filter_type
action find
entity Q14542633
relation P937
type Q56061
action filter_type
action find
entity Q15161278
relation P937
type Q56061
action filter_type
action find
entity Q15268683
relation P937
type Q56061
action filter_type
action find
entity Q15134036
relation P937
type Q56061
action filter_type
action find
entity Q15109875
relation P937
type Q56061
action filter_type
action find
entity Q15272950
relation P937
type Q56061
['Q434529', 'P937', {'concept': 'Q56061'}] ['Q13451003', 'P937', {'concept': 'Q56061'}] ['Q11935287', 'P937', {'concept': 'Q56061'}] ['Q15260746', 'P937', {'concept': 'Q56061'}] ['Q14542633', 'P937', {'concept': 'Q56061'}] ['Q15161278', 'P937', {'concept': 'Q56061'}] ['Q15268683', 'P937', {'concept': 'Q56061'}] ['Q15134036', 'P937', {'concept': 'Q56061'}] ['Q15109875', 'P937', {'concept': 'Q56061'}] ['Q15272950', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Q434529 ) ( resource:Q13451003 ) } . ?e property:P937 ?i }
Baldomero Espartero, Prince of Vergara Manuel de Sárraga Marcos Vizcaya Retana Jerónimo Nieto González Jesús López-Medel Fernando Gimeno Marín Juan Ramallo Massanet Enric Ribas Marí Pablo Pardo Yáñez Francisco Granados Calero
action union
action filter_type
action find
entity Baldomero Espartero, Prince of Vergara
relation work location
type administrative territorial entity
action filter_type
action find
entity Manuel de Sárraga
relation work location
type administrative territorial entity
action filter_type
action find
entity Marcos Vizcaya Retana
relation work location
type administrative territorial entity
action filter_type
action find
entity Jerónimo Nieto González
relation work location
type administrative territorial entity
action filter_type
action find
entity Jesús López-Medel
relation work location
type administrative territorial entity
action filter_type
action find
entity Fernando Gimeno Marín
relation work location
type administrative territorial entity
action filter_type
action find
entity Juan Ramallo Massanet
relation work location
type administrative territorial entity
action filter_type
action find
entity Enric Ribas Marí
relation work location
type administrative territorial entity
action filter_type
action find
entity Pablo Pardo Yáñez
relation work location
type administrative territorial entity
action filter_type
action find
entity Francisco Granados Calero
relation work location
type administrative territorial entity
['Baldomero Espartero, Prince of Vergara', 'work location', {'concept': 'administrative territorial entity'}] ['Manuel de Sárraga', 'work location', {'concept': 'administrative territorial entity'}] ['Marcos Vizcaya Retana', 'work location', {'concept': 'administrative territorial entity'}] ['Jerónimo Nieto González', 'work location', {'concept': 'administrative territorial entity'}] ['Jesús López-Medel', 'work location', {'concept': 'administrative territorial entity'}] ['Fernando Gimeno Marín', 'work location', {'concept': 'administrative territorial entity'}] ['Juan Ramallo Massanet', 'work location', {'concept': 'administrative territorial entity'}] ['Enric Ribas Marí', 'work location', {'concept': 'administrative territorial entity'}] ['Pablo Pardo Yáñez', 'work location', {'concept': 'administrative territorial entity'}] ['Francisco Granados Calero', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Baldomero_Espartero,_Prince_of_Vergara ) ( resource:Manuel_de_Sárraga ) } . ?e property:work_location ?i }
[]
administrative territorial entity
Q2807 Q2807 Q2807
SYSTEM
Madrid
Q2807 Q2807 Q2807 Q2807 Q2807 Q2807 Q2807 Q2807 Q2807 Q2807
(Q434529,P937,c(Q56061)) (Q13451003,P937,c(Q56061)) (Q11935287,P937,c(Q56061)) (Q15260746,P937,c(Q56061)) (Q14542633,P937,c(Q56061)) (Q15161278,P937,c(Q56061)) (Q15268683,P937,c(Q56061)) (Q15134036,P937,c(Q56061)) (Q15109875,P937,c(Q56061)) (Q15272950,P937,c(Q56061))
action union
action filter_type
action find
entity Q434529
relation P937
type Q56061
action filter_type
action find
entity Q13451003
relation P937
type Q56061
action filter_type
action find
entity Q11935287
relation P937
type Q56061
action filter_type
action find
entity Q15260746
relation P937
type Q56061
action filter_type
action find
entity Q14542633
relation P937
type Q56061
action filter_type
action find
entity Q15161278
relation P937
type Q56061
action filter_type
action find
entity Q15268683
relation P937
type Q56061
action filter_type
action find
entity Q15134036
relation P937
type Q56061
action filter_type
action find
entity Q15109875
relation P937
type Q56061
action filter_type
action find
entity Q15272950
relation P937
type Q56061
The work locations of Baldomero Espartero , Prince of Vergara , Manuel de Sárraga , Marcos Vizcaya Retana , Jerónimo Nieto González , Jesús López-Medel , Fernando Gimeno Marín , Juan Ramallo Massanet , Enric Ribas Marí , Pablo Pardo Yáñez and Francisco Granados Calero are in [ANSWER], [ANSWER] and [ANSWER]
['Q434529', 'P937', {'concept': 'Q56061'}] ['Q13451003', 'P937', {'concept': 'Q56061'}] ['Q11935287', 'P937', {'concept': 'Q56061'}] ['Q15260746', 'P937', {'concept': 'Q56061'}] ['Q14542633', 'P937', {'concept': 'Q56061'}] ['Q15161278', 'P937', {'concept': 'Q56061'}] ['Q15268683', 'P937', {'concept': 'Q56061'}] ['Q15134036', 'P937', {'concept': 'Q56061'}] ['Q15109875', 'P937', {'concept': 'Q56061'}] ['Q15272950', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Q434529 ) ( resource:Q13451003 ) } . ?e property:P937 ?i }
Madrid Madrid Madrid Madrid Madrid Madrid Madrid Madrid Madrid Madrid
The work locations of Baldomero Espartero , Prince of Vergara , Manuel de Sárraga , Marcos Vizcaya Retana , Jerónimo Nieto González , Jesús López-Medel , Fernando Gimeno Marín , Juan Ramallo Massanet , Enric Ribas Marí , Pablo Pardo Yáñez and Francisco Granados Calero are in Madrid, Madrid and Madrid
Madrid Madrid Madrid
action union
action filter_type
action find
entity Baldomero Espartero, Prince of Vergara
relation work location
type administrative territorial entity
action filter_type
action find
entity Manuel de Sárraga
relation work location
type administrative territorial entity
action filter_type
action find
entity Marcos Vizcaya Retana
relation work location
type administrative territorial entity
action filter_type
action find
entity Jerónimo Nieto González
relation work location
type administrative territorial entity
action filter_type
action find
entity Jesús López-Medel
relation work location
type administrative territorial entity
action filter_type
action find
entity Fernando Gimeno Marín
relation work location
type administrative territorial entity
action filter_type
action find
entity Juan Ramallo Massanet
relation work location
type administrative territorial entity
action filter_type
action find
entity Enric Ribas Marí
relation work location
type administrative territorial entity
action filter_type
action find
entity Pablo Pardo Yáñez
relation work location
type administrative territorial entity
action filter_type
action find
entity Francisco Granados Calero
relation work location
type administrative territorial entity
['Baldomero Espartero, Prince of Vergara', 'work location', {'concept': 'administrative territorial entity'}] ['Manuel de Sárraga', 'work location', {'concept': 'administrative territorial entity'}] ['Marcos Vizcaya Retana', 'work location', {'concept': 'administrative territorial entity'}] ['Jerónimo Nieto González', 'work location', {'concept': 'administrative territorial entity'}] ['Jesús López-Medel', 'work location', {'concept': 'administrative territorial entity'}] ['Fernando Gimeno Marín', 'work location', {'concept': 'administrative territorial entity'}] ['Juan Ramallo Massanet', 'work location', {'concept': 'administrative territorial entity'}] ['Enric Ribas Marí', 'work location', {'concept': 'administrative territorial entity'}] ['Pablo Pardo Yáñez', 'work location', {'concept': 'administrative territorial entity'}] ['Francisco Granados Calero', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?e ) { ( resource:Baldomero_Espartero,_Prince_of_Vergara ) ( resource:Manuel_de_Sárraga ) } . ?e property:work_location ?i }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q434529
P410
Q4189293
USER
Which title was the military rank held by Baldomero Espartero, Prince of Vergara ?
(Q434529,P410,c(Q4189293))
action filter_type
action find
entity Q434529
relation P410
type Q4189293
['Q434529', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q4189293 . resource:Q434529 property:P410 ?s }
Baldomero Espartero, Prince of Vergara
action filter_type
action find
entity Baldomero Espartero, Prince of Vergara
relation military rank
type title
['Baldomero Espartero, Prince of Vergara', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:title . resource:Baldomero_Espartero,_Prince_of_Vergara property:military_rank ?s }
[]
title
Q83460
SYSTEM
general officer
Q83460
(Q434529,P410,c(Q4189293))
action filter_type
action find
entity Q434529
relation P410
type Q4189293
[ANSWER] was the military rank held by Baldomero Espartero, Prince of Vergara
['Q434529', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q4189293 . resource:Q434529 property:P410 ?s }
general officer
General officer was the military rank held by Baldomero Espartero, Prince of Vergara
general officer
action filter_type
action find
entity Baldomero Espartero, Prince of Vergara
relation military rank
type title
['Baldomero Espartero, Prince of Vergara', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:title . resource:Baldomero_Espartero,_Prince_of_Vergara property:military_rank ?s }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q83460 Q3591074
P410
Q502895
USER
Does Éric Defert hold that title ?
(Q3591074,P410,Q83460)
action is_in
entity Q3591074
action find
entity Q83460
relation P410
['Q3591074', 'P410', 'Q83460']
ASK WHERE { resource:Q83460 property:P410 resource:Q3591074 }
general officer Éric Defert
action is_in
entity Éric Defert
action find
entity general officer
relation military rank
['Éric Defert', 'military rank', 'general officer']
ASK WHERE { resource:general_officer property:military_rank resource:Éric_Defert }
[]
common name
SYSTEM
NO
(Q3591074,P410,Q83460)
action is_in
entity Q3591074
action find
entity Q83460
relation P410
[ANSWER]
['Q3591074', 'P410', 'Q83460']
ASK WHERE { resource:Q83460 property:P410 resource:Q3591074 }
No
action is_in
entity Éric Defert
action find
entity general officer
relation military rank
['Éric Defert', 'military rank', 'general officer']
ASK WHERE { resource:general_officer property:military_rank resource:Éric_Defert }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q15272950 Q53925 Q117303
P27
Q15617994
USER
Is Francisco Granados Calero a native of Orsomarso and San Vittore del Lazio ?
(Q15272950,P27,Q53925) (Q15272950,P27,Q117303)
action is_in
entity Q15272950
action intersection
action find_reverse
entity Q53925
relation P27
action find_reverse
entity Q117303
relation P27
['Q15272950', 'P27', 'Q53925'] ['Q15272950', 'P27', 'Q117303']
ASK WHERE { resource:Q15272950 property:P27 resource:Q53925 . resource:Q15272950 property:P27 resource:Q117303 }
Francisco Granados Calero Orsomarso San Vittore del Lazio
action is_in
entity Francisco Granados Calero
action intersection
action find_reverse
entity Orsomarso
relation country of citizenship
action find_reverse
entity San Vittore del Lazio
relation country of citizenship
['Francisco Granados Calero', 'country of citizenship', 'Orsomarso'] ['Francisco Granados Calero', 'country of citizenship', 'San Vittore del Lazio']
ASK WHERE { resource:Francisco_Granados_Calero property:country_of_citizenship resource:Orsomarso . resource:Francisco_Granados_Calero property:country_of_citizenship resource:San_Vittore_del_Lazio }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q15272950,P27,Q53925) (Q15272950,P27,Q117303)
action is_in
entity Q15272950
action intersection
action find_reverse
entity Q53925
relation P27
action find_reverse
entity Q117303
relation P27
[ANSWER]
['Q15272950', 'P27', 'Q53925'] ['Q15272950', 'P27', 'Q117303']
ASK WHERE { resource:Q15272950 property:P27 resource:Q53925 . resource:Q15272950 property:P27 resource:Q117303 }
No
action is_in
entity Francisco Granados Calero
action intersection
action find_reverse
entity Orsomarso
relation country of citizenship
action find_reverse
entity San Vittore del Lazio
relation country of citizenship
['Francisco Granados Calero', 'country of citizenship', 'Orsomarso'] ['Francisco Granados Calero', 'country of citizenship', 'San Vittore del Lazio']
ASK WHERE { resource:Francisco_Granados_Calero property:country_of_citizenship resource:Orsomarso . resource:Francisco_Granados_Calero property:country_of_citizenship resource:San_Vittore_del_Lazio }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15272950
P102
Q7278
USER
Which political party is that person a member of ?
action filter_type
action find
entity Q15272950
relation P102
type Q7278
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q7278 . resource:Q15272950 property:P102 ?l }
Francisco Granados Calero
action filter_type
action find
entity Francisco Granados Calero
relation member of political party
type political party
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_party . resource:Francisco_Granados_Calero property:member_of_political_party ?l }
[]
political party
Q3176618
SYSTEM
Socialist Party of the Valencian Country
Q3176618
action filter_type
action find
entity Q15272950
relation P102
type Q7278
[ANSWER] is that person a member of
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q7278 . resource:Q15272950 property:P102 ?l }
Socialist Party of the Valencian Country
Socialist Party of the Valencian Country is that person a member of
Socialist Party of the Valencian Country
action filter_type
action find
entity Francisco Granados Calero
relation member of political party
type political party
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_party . resource:Francisco_Granados_Calero property:member_of_political_party ?l }
[]