Simple Question (Direct)
Simple Question
Q11011983
P21
Q290
USER
What is the sex of Álvaro Cuesta ?
(Q11011983,P21,c(Q290))
action filter_type
action find
entity Q11011983
relation P21
type Q290
['Q11011983', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q11011983 property:P21 ?h . ?h rdf:type ontology:Q290 }
Álvaro Cuesta
action filter_type
action find
entity Álvaro Cuesta
relation gender
type sex
['Álvaro Cuesta', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Álvaro_Cuesta property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q11011983,P21,c(Q290))
action filter_type
action find
entity Q11011983
relation P21
type Q290
The sex of Álvaro Cuesta is the [ANSWER]
['Q11011983', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q11011983 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
The sex of Álvaro Cuesta is the male
male
action filter_type
action find
entity Álvaro Cuesta
relation gender
type sex
['Álvaro Cuesta', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Álvaro_Cuesta property:gender ?h . ?h rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11011983
P1412
Q34770
USER
Which language does Álvaro Cuesta speak in ?
(Q11011983,P1412,c(Q34770))
action filter_type
action find
entity Q11011983
relation P1412
type Q34770
['Q11011983', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q11011983 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Álvaro Cuesta
action filter_type
action find
entity Álvaro Cuesta
relation languages spoken, written or signed
type language
['Álvaro Cuesta', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Álvaro_Cuesta property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q11011983,P1412,c(Q34770))
action filter_type
action find
entity Q11011983
relation P1412
type Q34770
Álvaro Cuesta speaks in [ANSWER]
['Q11011983', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q11011983 property:P1412 ?k . ?k rdf:type ontology:Q34770 }
Spanish
Álvaro Cuesta speaks in Spanish
Spanish
action filter_type
action find
entity Álvaro Cuesta
relation languages spoken, written or signed
type language
['Álvaro Cuesta', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Álvaro_Cuesta property:languages_spoken,_written_or_signed ?k . ?k rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18394746
Q34770
USER
And also tell me about Tomás del Toro del Villar?
(Q18394746,P1412,c(Q34770))
action filter_type
action find
entity Q18394746
relation P1412
type Q34770
['Q18394746', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q18394746 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Tomás del Toro del Villar
action filter_type
action find
entity Tomás del Toro del Villar
relation languages spoken, written or signed
type language
['Tomás del Toro del Villar', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Tomás_del_Toro_del_Villar property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q18394746,P1412,c(Q34770))
action filter_type
action find
entity Q18394746
relation P1412
type Q34770
[ANSWER]
['Q18394746', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q18394746 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Spanish
Spanish
action filter_type
action find
entity Tomás del Toro del Villar
relation languages spoken, written or signed
type language
['Tomás del Toro del Villar', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Tomás_del_Toro_del_Villar property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11011983
P102
Q7278
USER
Which political party is Álvaro Cuesta a member of ?
(Q11011983,P102,c(Q7278))
action filter_type
action find
entity Q11011983
relation P102
type Q7278
['Q11011983', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?p WHERE { resource:Q11011983 property:P102 ?p . ?p rdf:type ontology:Q7278 }
Álvaro Cuesta
action filter_type
action find
entity Álvaro Cuesta
relation member of political party
type political party
['Álvaro Cuesta', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?p WHERE { resource:Álvaro_Cuesta property:member_of_political_party ?p . ?p rdf:type ontology:political_party }
[]
political party
Q138198
SYSTEM
Spanish Socialist Workers' Party
Q138198
(Q11011983,P102,c(Q7278))
action filter_type
action find
entity Q11011983
relation P102
type Q7278
The [ANSWER] is Álvaro Cuesta a member of
['Q11011983', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?p WHERE { resource:Q11011983 property:P102 ?p . ?p rdf:type ontology:Q7278 }
Spanish Socialist Workers' Party
The Spanish Socialist Workers' Party is Álvaro Cuesta a member of
Spanish Socialist Workers' Party
action filter_type
action find
entity Álvaro Cuesta
relation member of political party
type political party
['Álvaro Cuesta', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?p WHERE { resource:Álvaro_Cuesta property:member_of_political_party ?p . ?p rdf:type ontology:political_party }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20875468
Q7278
USER
And how about Salvador Bordes i Balcells?
(Q20875468,P102,c(Q7278))
action filter_type
action find
entity Q20875468
relation P102
type Q7278
['Q20875468', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { resource:Q20875468 property:P102 ?g . ?g rdf:type ontology:Q7278 }
Salvador Bordes i Balcells
action filter_type
action find
entity Salvador Bordes i Balcells
relation member of political party
type political party
['Salvador Bordes i Balcells', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { resource:Salvador_Bordes_i_Balcells property:member_of_political_party ?g . ?g rdf:type ontology:political_party }
[]
political party
Q1129443
SYSTEM
Democratic Convergence of Catalonia
Q1129443
(Q20875468,P102,c(Q7278))
action filter_type
action find
entity Q20875468
relation P102
type Q7278
[ANSWER]
['Q20875468', 'P102', {'concept': 'Q7278'}]
SELECT DISTINCT ?g WHERE { resource:Q20875468 property:P102 ?g . ?g rdf:type ontology:Q7278 }
Democratic Convergence of Catalonia
Democratic Convergence of Catalonia
action filter_type
action find
entity Salvador Bordes i Balcells
relation member of political party
type political party
['Salvador Bordes i Balcells', 'member of political party', {'concept': 'political party'}]
SELECT DISTINCT ?g WHERE { resource:Salvador_Bordes_i_Balcells property:member_of_political_party ?g . ?g rdf:type ontology:political_party }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1129443 Q1795689
P159
Q56061
USER
Is Metropolitan Toronto the head office for that political party located ?
(Q1129443,P159,Q1795689)
action is_in
entity Q1795689
action find
entity Q1129443
relation P159
['Q1129443', 'P159', 'Q1795689']
ASK WHERE { resource:Q1129443 property:P159 resource:Q1795689 }
Democratic Convergence of Catalonia Metropolitan Toronto
action is_in
entity Metropolitan Toronto
action find
entity Democratic Convergence of Catalonia
relation headquarters location
['Democratic Convergence of Catalonia', 'headquarters location', 'Metropolitan Toronto']
ASK WHERE { resource:Democratic_Convergence_of_Catalonia property:headquarters_location resource:Metropolitan_Toronto }
[]
administrative territorial entity
SYSTEM
NO
(Q1129443,P159,Q1795689)
action is_in
entity Q1795689
action find
entity Q1129443
relation P159
[ANSWER]
['Q1129443', 'P159', 'Q1795689']
ASK WHERE { resource:Q1129443 property:P159 resource:Q1795689 }
No
action is_in
entity Metropolitan Toronto
action find
entity Democratic Convergence of Catalonia
relation headquarters location
['Democratic Convergence of Catalonia', 'headquarters location', 'Metropolitan Toronto']
ASK WHERE { resource:Democratic_Convergence_of_Catalonia property:headquarters_location resource:Metropolitan_Toronto }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q385543
P1142
Q1047113 Q7257 Q7278
USER
How many political parties promote lesser number of special fields and ideologies than Communist Party of the Netherlands ?
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action less
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q385543
relation P1142
type Q1047113
type Q7257
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?o WHERE { { ?c rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q7278 . ?o property:P1142 ?c } UNION { ?o rdf:type ontology:Q7278 . ?c rdf:type ontology:Q7257 . ?o property:P1142 ?c } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Q385543 property:P1142 ?s . { { ?s rdf:type ontology:Q1047113 } UNION { ?s rdf:type ontology:Q7257 } } } } . FILTER ( ?v < ?d ) }
Communist Party of the Netherlands
action count
action less
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity Communist Party of the Netherlands
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?o WHERE { { ?c rdf:type ontology:special_field . ?o rdf:type ontology:political_party . ?o property:political_ideology ?c } UNION { ?o rdf:type ontology:political_party . ?c rdf:type ontology:ideology . ?o property:political_ideology ?c } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Communist_Party_of_the_Netherlands property:political_ideology ?s . { { ?s rdf:type ontology:special_field } UNION { ?s rdf:type ontology:ideology } } } } . FILTER ( ?v < ?d ) }
[]
special field ideology political party
SYSTEM
166
Q627213 Q8711543 Q1164324 Q6064226 Q3572851 Q49750 Q504000 Q1470891 Q3322477 Q4891011 Q5154327 Q4229890 Q1780583 Q10862991 Q5314301 Q3331262 Q3328775 Q192406 Q3176618 Q3324147 Q426963 Q82558 Q3392277 Q6767863 Q3366745 Q537850 Q1351963 Q3042973 Q586066 Q5502807 Q161118 Q317952 Q2883859 Q6064217 Q2590329 Q4671756 Q512498 Q2386352 Q7197818 Q1574974 Q2883403 Q7197814 Q7197815 Q7197810 Q1169744 Q9056260 Q9056262 Q208602 Q5558687 Q3395162 Q50571 Q3822555 Q5154467 Q4229909 Q324107 Q1672366 Q1284257 Q2166484 Q478811 Q2054444 Q429078 Q7197806 Q7232673 Q3047700 Q9056341 Q734792 Q913567 Q2096648 Q256121 Q1069440 Q1122797 Q5154376 Q321633 Q1339294 Q305317 Q750116 Q308714 Q1120586 Q463318 Q2351908 Q3122372 Q2376287 Q1325836 Q4895562 Q695270 Q668699 Q545900 Q2203833 Q3326711 Q8778797 Q592068 Q3191174 Q204911 Q3173752 Q8195538 Q1073752 Q138198 Q3739119 Q341085 Q1136727 Q173236 Q3298265 Q3751846 Q3813847 Q198403 Q153401 Q3326695 Q1343742 Q3049400 Q8350502 Q617261 Q461886 Q7362565 Q155000 Q950356 Q148861 Q13129 Q1957214 Q4229896 Q3326258 Q3330925 Q506537 Q7197808 Q3366589 Q8206150 Q580690 Q3326681 Q5291 Q5406044 Q6064224 Q847914 Q781788 Q2575714 Q1789010 Q3573531 Q1459085 Q672479 Q1525453 Q16059622 Q961371 Q19972534 Q12389059 Q280901 Q3079953 Q1268112 Q1972750 Q168153 Q3328134 Q1328410 Q1465376 Q3322584 Q507226 Q452571 Q487129 Q321673 Q4891520 Q954933 Q3327440 Q4363281 Q943595 Q499632 Q5401616 Q2630934 Q2605592 Q10944648 Q600703
(c(Q7278),P1142,c(Q1047113)|c(Q7257))
action count
action less
action union
action find_tuple_counts
relation P1142
type Q7278
type Q1047113
action find_tuple_counts
relation P1142
type Q7278
type Q7257
action count
action filter_multi_types
action find
entity Q385543
relation P1142
type Q1047113
type Q7257
[ANSWER]
[{'concept': 'Q7278'}, 'P1142', [{'concept': 'Q1047113'}, {'concept': 'Q7257'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?o WHERE { { ?c rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q7278 . ?o property:P1142 ?c } UNION { ?o rdf:type ontology:Q7278 . ?c rdf:type ontology:Q7257 . ?o property:P1142 ?c } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Q385543 property:P1142 ?s . { { ?s rdf:type ontology:Q1047113 } UNION { ?s rdf:type ontology:Q7257 } } } } . FILTER ( ?v < ?d ) }
Workers' Party of Ethiopia Communist Party of Kampuchea Communist Party of Denmark People's Party of Extremadura Aragon's Socialists' Party Socialist Unity Party of Germany Communist Party of Brazil Union of October 17 Party of the Communists of Catalonia Extremaduran Coalition Communist Party of Andalusia Communist Party of Australia Communist Party of Namibia Converxencia Nacionalista Galega Slovenian Pirate Party Canarian Nationalist Assembly Socialist Party of the People of Ceuta Communist Party of Greece Socialist Party of the Valencian Country Catalan Workers Bloc Communist Party of Nepal Party Against Mistreatment to Animals People's Party (Spain, 1976) Pirate Party of Turkey Socialist Party of Madrid-PSOE Communist Party of Belgium Citizenship, Action, Participation for the 21st Century Estat Català Tunisian Communist Party Frente Nacional Communist Party of Austria Communist Party of Chile Communist Party Andalusian People's Party Communist Party of Australia Communist Organization of Spain Marijuana Party of Canada Communist Party of the People of Spain Pirate Party of Ukraine Pirate Party UK Extremaduran Popular Bloc Pirate Party of Serbia Pirate Party of Poland Pirate Party of Bosnia and Herzegovina Communist Party of the Basque Homelands People's Party of the Valencian Community People's Party of the Community of Madrid Pirate Party Workers Revolutionary Party - Revolutionary Left Socialist Action Party (Spain) United States Pirate Party Cannabis Party Communist Party of the Catalan People Communist Party of the Russian Soviet Federative Socialist Republic Communist Party of Germany/Marxists–Leninists Iraqi Communist Party Pirate Party Communist People's Party of Kazakhstan Communist Party of Spain Communist Party of Réunion PSUC viu Pirate Party Portuguese Pirate Party Liberal-Conservative Party Partido Socialista de los Trabajadores (Spain) European Democratic Party Communist Party of Bohemia and Moravia Pirate Party Berlin Romanian Communist Party Pirate Party of Russia Communist Party of Ukraine Communist Party of Castile-La Mancha Communist Party of Germany (1990) Tudeh Party of Iran South African Communist Party Party of Communists of the Republic of Moldova Communist Party USA Communist Party of Australia Movement of Unitarian Communists Communist Party of Bulgaria Galician Socialist Party Communist Party of Moldova Communist Party of Slovakia Party of Labour of Spain Pirate Party of Austria POUM Green Liberal Party of Switzerland Sudanese Communist Party National Front Esquerda de Galicia Communist Party of Great Britain Pirate Party Russian Social Democratic Labour Party Slovak Pirate Party National Alliance Hungarian Working People's Party Spanish Socialist Workers' Party Communist Party Czech Pirate Party Pirate Party Belgium Convergence for the Isles Communist Party of Pakistan Humanist Party Proletarian Catalan Party Pirate Party Iceland Communist Party of Germany Workers' Party Pirate Party of Greece Carlist Party Convergència Democràtica de la Franja Political Party of Radicals Italian Communist Party Romanian Pirate Party Bulgarian Communist Party Parti Québécois German Communist Party Pirate Party Germany Syrian Communist Party Communist Party of Germany Communist Party of Galicia United Extremadura Unified Communist Party of Nepal Pirate Party Croatia Pirate Party (Tunisia) Canarian Assembly Union of the Russian People Communist Party of the Valencians Pirate Party Cangas Left Alternative People's Party of Castile and León Communist Party of Venezuela Pirate Party Green Party of Quebec Communist Party Carlist Party of Euskalherria Pirate Party Pirate Party Switzerland Communist Organization of Greece Podemos Land Party Jaén en Común Galician Workers Front People's Party of Aragon Pirate Party Luxembourg League of Communists of Slovenia Peruvian Communist Party Pirate Party Australia Revolutionary Workers' Party (Spain) Pirate Party Communist Party of Lithuania Republican Left of the Valencian Country Riojan Party Amaiur Communist Party of Germany Communist Party of Luxembourg Socialist Party of Cantabria–PSOE Popular Socialists Galician Left Pirate Party of Kazakhstan Spanish Alternative Marxist–Leninist Party of Germany Estonian Pirate Party Unified Socialist Party of Catalonia Communist Party of Moldova Valencian Left Communist Party of Sri Lanka
166
action count
action less
action union
action find_tuple_counts
relation political ideology
type political party
type special field
action find_tuple_counts
relation political ideology
type political party
type ideology
action count
action filter_multi_types
action find
entity Communist Party of the Netherlands
relation political ideology
type special field
type ideology
[{'concept': 'political party'}, 'political ideology', [{'concept': 'special field'}, {'concept': 'ideology'}]]
SELECT DISTINCT ( COUNT ( ?o ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) ?o WHERE { { ?c rdf:type ontology:special_field . ?o rdf:type ontology:political_party . ?o property:political_ideology ?c } UNION { ?o rdf:type ontology:political_party . ?c rdf:type ontology:ideology . ?o property:political_ideology ?c } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?d ) WHERE { resource:Communist_Party_of_the_Netherlands property:political_ideology ?s . { { ?s rdf:type ontology:special_field } UNION { ?s rdf:type ontology:ideology } } } } . FILTER ( ?v < ?d ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q809 Q1321
P1412
Q502895
USER
Which people speaks Spanish and Polish ?
AND((c(Q502895),P1412,Q1321), (c(Q502895),P1412,Q809))
action filter_type
action intersection
action find_reverse
entity Q1321
relation P1412
action find_reverse
entity Q809
relation P1412
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q1321'], [{'concept': 'Q502895'}, 'P1412', 'Q809']]}
SELECT DISTINCT ?h WHERE { ?h property:P1412 resource:Q1321 . ?h property:P1412 resource:Q809 . ?h rdf:type ontology:Q502895 }
Polish Spanish
action filter_type
action intersection
action find_reverse
entity Spanish
relation languages spoken, written or signed
action find_reverse
entity Polish
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Spanish'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'Polish']]}
SELECT DISTINCT ?h WHERE { ?h property:languages_spoken,_written_or_signed resource:Spanish . ?h property:languages_spoken,_written_or_signed resource:Polish . ?h rdf:type ontology:common_name }
[]
common name
Q27021219 Q540908 Q117763 Q519894 Q158647 Q7269822 Q6170279 Q157959 Q18508275 Q23943976
SYSTEM
Some of them are Casimir Piekarec, Jerzy Ficowski, Giuseppe Caspar Mezzofanti, Antoni Lange, Leo Beenhakker, Marek Blahuš, Yoris Jarzynski, Leszek Engelking, Helena Janina Pajzderska, Wincenty Stroka
Q27021219 Q18508275 Q776173 Q7269822 Q22133011 Q117763 Q8961870 Q2904703 Q19629400 Q519894 Q540908 Q57106 Q20897752 Q158647 Q157959 Q6170279 Q458245 Q11713786 Q23943976 Q297137
AND((c(Q502895),P1412,Q1321), (c(Q502895),P1412,Q809))
action filter_type
action intersection
action find_reverse
entity Q1321
relation P1412
action find_reverse
entity Q809
relation P1412
type Q502895
[ANSWERS] speak Spanish and Polish
{'AND': [[{'concept': 'Q502895'}, 'P1412', 'Q1321'], [{'concept': 'Q502895'}, 'P1412', 'Q809']]}
SELECT DISTINCT ?h WHERE { ?h property:P1412 resource:Q1321 . ?h property:P1412 resource:Q809 . ?h rdf:type ontology:Q502895 }
Casimir Piekarec Helena Janina Pajzderska Józef Łobodowski Marek Blahuš Vytautas Šauklys Giuseppe Caspar Mezzofanti Florian Smieja Zvi Weinberg Zdzisław Milner Antoni Lange Jerzy Ficowski Heinrich Schliemann Kuc Thomas Leo Beenhakker Leszek Engelking Yoris Jarzynski Ignacy Domeyko Irena Kuran-Bogucka Wincenty Stroka Mikalojus Konstantinas Čiurlionis
Casimir Piekarec, Jerzy Ficowski, Giuseppe Caspar Mezzofanti, Antoni Lange, Leo Beenhakker, Marek Blahuš, Yoris Jarzynski, Leszek Engelking, Helena Janina Pajzderska and Wincenty Stroka speak Spanish and Polish
Casimir Piekarec Jerzy Ficowski Giuseppe Caspar Mezzofanti Antoni Lange Leo Beenhakker Marek Blahuš Yoris Jarzynski Leszek Engelking Helena Janina Pajzderska Wincenty Stroka
action filter_type
action intersection
action find_reverse
entity Spanish
relation languages spoken, written or signed
action find_reverse
entity Polish
relation languages spoken, written or signed
type common name
{'AND': [[{'concept': 'common name'}, 'languages spoken, written or signed', 'Spanish'], [{'concept': 'common name'}, 'languages spoken, written or signed', 'Polish']]}
SELECT DISTINCT ?h WHERE { ?h property:languages_spoken,_written_or_signed resource:Spanish . ?h property:languages_spoken,_written_or_signed resource:Polish . ?h rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7814473 Q157959
P27 P17
Q15617994
USER
Which administrative territories are Leszek Engelking a civilian of or are Tolo, Guinea located in ?
OR((Q157959,P27,c(Q15617994)), (Q7814473,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q157959
relation P27
action find
entity Q7814473
relation P17
type Q15617994
{'OR': [['Q157959', 'P27', {'concept': 'Q15617994'}], ['Q7814473', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q157959 property:P27 ?k } UNION { resource:Q7814473 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Tolo, Guinea Leszek Engelking
action filter_type
action union
action find
entity Leszek Engelking
relation country of citizenship
action find
entity Tolo, Guinea
relation country
type designation for an administrative territorial entity
{'OR': [['Leszek Engelking', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tolo, Guinea', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Leszek_Engelking property:country_of_citizenship ?k } UNION { resource:Tolo,_Guinea property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36 Q1006
SYSTEM
Poland, Guinea
Q36 Q1006
OR((Q157959,P27,c(Q15617994)), (Q7814473,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q157959
relation P27
action find
entity Q7814473
relation P17
type Q15617994
[ANSWERS] are Leszek Engelking a civilian of or are Tolo, Guinea located in
{'OR': [['Q157959', 'P27', {'concept': 'Q15617994'}], ['Q7814473', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Q157959 property:P27 ?k } UNION { resource:Q7814473 property:P17 ?k } } . ?k rdf:type ontology:Q15617994 }
Poland Guinea
Poland and Guinea are Leszek Engelking a civilian of or are Tolo, Guinea located in
Poland Guinea
action filter_type
action union
action find
entity Leszek Engelking
relation country of citizenship
action find
entity Tolo, Guinea
relation country
type designation for an administrative territorial entity
{'OR': [['Leszek Engelking', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Tolo, Guinea', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { { { resource:Leszek_Engelking property:country_of_citizenship ?k } UNION { resource:Tolo,_Guinea property:country ?k } } . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4439479
P530
Q1048835
USER
Are Stanova known to have diplomatic connections with those administrative territories ?
(Q4439479,P530,Q36) (Q4439479,P530,Q1006)
action is_in
entity prev_answer
action find
entity Q4439479
relation P530
['Q4439479', 'P530', 'Q36'] ['Q4439479', 'P530', 'Q1006']
ASK WHERE { resource:Q4439479 property:P530 ?a . VALUES ( ?a ) { ( resource:Q36 ) ( resource:Q1006 ) } }
Stanova
action is_in
entity prev_answer
action find
entity Stanova
relation diplomatic relation
['Stanova', 'diplomatic relation', 'Poland'] ['Stanova', 'diplomatic relation', 'Guinea']
ASK WHERE { resource:Stanova property:diplomatic_relation ?a . VALUES ( ?a ) { ( resource:Poland ) ( resource:Guinea ) } }
[]
political territorial entity
SYSTEM
NO
(Q4439479,P530,Q36) (Q4439479,P530,Q1006)
action is_in
entity prev_answer
action find
entity Q4439479
relation P530
[ANSWER]
['Q4439479', 'P530', 'Q36'] ['Q4439479', 'P530', 'Q1006']
ASK WHERE { resource:Q4439479 property:P530 ?a . VALUES ( ?a ) { ( resource:Q36 ) ( resource:Q1006 ) } }
No
action is_in
entity prev_answer
action find
entity Stanova
relation diplomatic relation
['Stanova', 'diplomatic relation', 'Poland'] ['Stanova', 'diplomatic relation', 'Guinea']
ASK WHERE { resource:Stanova property:diplomatic_relation ?a . VALUES ( ?a ) { ( resource:Poland ) ( resource:Guinea ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7269822
P802
Q502895
USER
Which person was Marek Blahuš a student of ?
(c(Q502895),P802,Q7269822)
action filter_type
action find_reverse
entity Q7269822
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q7269822']
SELECT DISTINCT ?g WHERE { ?g property:P802 resource:Q7269822 . ?g rdf:type ontology:Q502895 }
Marek Blahuš
action filter_type
action find_reverse
entity Marek Blahuš
relation student
type common name
[{'concept': 'common name'}, 'student', 'Marek Blahuš']
SELECT DISTINCT ?g WHERE { ?g property:student resource:Marek_Blahuš . ?g rdf:type ontology:common_name }
[]
common name
Q12028448
SYSTEM
Karel Pala
Q12028448
(c(Q502895),P802,Q7269822)
action filter_type
action find_reverse
entity Q7269822
relation P802
type Q502895
[ANSWER] was Marek Blahuš a student of
[{'concept': 'Q502895'}, 'P802', 'Q7269822']
SELECT DISTINCT ?g WHERE { ?g property:P802 resource:Q7269822 . ?g rdf:type ontology:Q502895 }
Karel Pala
Karel Pala was Marek Blahuš a student of
Karel Pala
action filter_type
action find_reverse
entity Marek Blahuš
relation student
type common name
[{'concept': 'common name'}, 'student', 'Marek Blahuš']
SELECT DISTINCT ?g WHERE { ?g property:student resource:Marek_Blahuš . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12028448
P19
Q56061
USER
Which administrative territory is the birthplace of that person ?
(Q12028448,P19,c(Q56061))
action filter_type
action find
entity Q12028448
relation P19
type Q56061
['Q12028448', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q12028448 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Karel Pala
action filter_type
action find
entity Karel Pala
relation place of birth
type administrative territorial entity
['Karel Pala', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Karel_Pala property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q171018
SYSTEM
Zlín
Q171018
(Q12028448,P19,c(Q56061))
action filter_type
action find
entity Q12028448
relation P19
type Q56061
[ANSWER] is the birthplace of that person
['Q12028448', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { resource:Q12028448 property:P19 ?j . ?j rdf:type ontology:Q56061 }
Zlín
Zlín is the birthplace of that person
Zlín
action filter_type
action find
entity Karel Pala
relation place of birth
type administrative territorial entity
['Karel Pala', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Karel_Pala property:place_of_birth ?j . ?j rdf:type ontology:administrative_territorial_entity }
[]