Simple Question (Direct)
Simple Question
Q1937860
P1412
Q34770
USER
Which language is Miquel de Palol capable of writing ?
(Q1937860,P1412,c(Q34770))
action filter_type
action find
entity Q1937860
relation P1412
type Q34770
['Q1937860', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q1937860 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Miquel de Palol
action filter_type
action find
entity Miquel de Palol
relation languages spoken, written or signed
type language
['Miquel de Palol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Miquel_de_Palol property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q1937860,P1412,c(Q34770))
action filter_type
action find
entity Q1937860
relation P1412
type Q34770
[ANSWER] is Miquel de Palol capable of writing
['Q1937860', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?j WHERE { resource:Q1937860 property:P1412 ?j . ?j rdf:type ontology:Q34770 }
Spanish
Spanish is Miquel de Palol capable of writing
Spanish
action filter_type
action find
entity Miquel de Palol
relation languages spoken, written or signed
type language
['Miquel de Palol', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?j WHERE { resource:Miquel_de_Palol property:languages_spoken,_written_or_signed ?j . ?j rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1321
P2439
Q853614
USER
Which identifier has a correspondence with the language that one ?
(c(Q853614),P2439,Q1321)
action filter_type
action find_reverse
entity Q1321
relation P2439
type Q853614
[{'concept': 'Q853614'}, 'P2439', 'Q1321']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q853614 . ?z property:P2439 resource:Q1321 }
Spanish
action filter_type
action find_reverse
entity Spanish
relation language
type identifier
[{'concept': 'identifier'}, 'language', 'Spanish']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:identifier . ?z property:language resource:Spanish }
[]
identifier
Q16290997
SYSTEM
Salgado
Q16290997
(c(Q853614),P2439,Q1321)
action filter_type
action find_reverse
entity Q1321
relation P2439
type Q853614
[ANSWER] has a correspondence with the language that one
[{'concept': 'Q853614'}, 'P2439', 'Q1321']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q853614 . ?z property:P2439 resource:Q1321 }
Salgado
Salgado has a correspondence with the language that one
Salgado
action filter_type
action find_reverse
entity Spanish
relation language
type identifier
[{'concept': 'identifier'}, 'language', 'Spanish']
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:identifier . ?z property:language resource:Spanish }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3574785 Q1937860
P27
Q15617994
USER
Which administrative territories are Miquel de Palol or Zao a civilian of ?
OR((Q1937860,P27,c(Q15617994)), (Q3574785,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1937860
relation P27
action find
entity Q3574785
relation P27
type Q15617994
{'OR': [['Q1937860', 'P27', {'concept': 'Q15617994'}], ['Q3574785', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q3574785 property:P27 ?x } UNION { resource:Q1937860 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Zao Miquel de Palol
action filter_type
action union
action find
entity Miquel de Palol
relation country of citizenship
action find
entity Zao
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Miquel de Palol', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zao', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Zao property:country_of_citizenship ?x } UNION { resource:Miquel_de_Palol property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q971
SYSTEM
Spain, Republic of the Congo
Q29 Q971
OR((Q1937860,P27,c(Q15617994)), (Q3574785,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1937860
relation P27
action find
entity Q3574785
relation P27
type Q15617994
[ANSWERS] are Miquel de Palol or Zao a civilian of
{'OR': [['Q1937860', 'P27', {'concept': 'Q15617994'}], ['Q3574785', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q3574785 property:P27 ?x } UNION { resource:Q1937860 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Spain Republic of the Congo
Spain and Republic of the Congo are Miquel de Palol or Zao a civilian of
Spain Republic of the Congo
action filter_type
action union
action find
entity Miquel de Palol
relation country of citizenship
action find
entity Zao
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Miquel de Palol', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zao', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Zao property:country_of_citizenship ?x } UNION { resource:Miquel_de_Palol property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7945910
P27
Q502895
USER
Are W. R. F. Browning a citizen of those administrative territories ?
(Q7945910,P27,Q29) (Q7945910,P27,Q971)
action is_in
entity prev_answer
action find
entity Q7945910
relation P27
['Q7945910', 'P27', 'Q29'] ['Q7945910', 'P27', 'Q971']
ASK WHERE { resource:Q7945910 property:P27 ?v . VALUES ( ?v ) { ( resource:Q29 ) ( resource:Q971 ) } }
W. R. F. Browning
action is_in
entity prev_answer
action find
entity W. R. F. Browning
relation country of citizenship
['W. R. F. Browning', 'country of citizenship', 'Spain'] ['W. R. F. Browning', 'country of citizenship', 'Republic of the Congo']
ASK WHERE { resource:W._R._F._Browning property:country_of_citizenship ?v . VALUES ( ?v ) { ( resource:Spain ) ( resource:Republic_of_the_Congo ) } }
[]
common name
SYSTEM
NO
(Q7945910,P27,Q29) (Q7945910,P27,Q971)
action is_in
entity prev_answer
action find
entity Q7945910
relation P27
[ANSWER]
['Q7945910', 'P27', 'Q29'] ['Q7945910', 'P27', 'Q971']
ASK WHERE { resource:Q7945910 property:P27 ?v . VALUES ( ?v ) { ( resource:Q29 ) ( resource:Q971 ) } }
No
action is_in
entity prev_answer
action find
entity W. R. F. Browning
relation country of citizenship
['W. R. F. Browning', 'country of citizenship', 'Spain'] ['W. R. F. Browning', 'country of citizenship', 'Republic of the Congo']
ASK WHERE { resource:W._R._F._Browning property:country_of_citizenship ?v . VALUES ( ?v ) { ( resource:Spain ) ( resource:Republic_of_the_Congo ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { FILTER ( ?j = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?j ) WHERE { ?x property:P530 ?p . ?x rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( MIN ( ?q ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?q ) WHERE { ?e property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } } }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { FILTER ( ?j = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?j ) WHERE { ?x property:diplomatic_relation ?p . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( MIN ( ?q ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?q ) WHERE { ?e property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have a diplomatic relationship with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?x WHERE { FILTER ( ?j = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?j ) WHERE { ?x property:P530 ?p . ?x rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( MIN ( ?q ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?q ) WHERE { ?e property:P530 ?g . ?g rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?e } } }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have a diplomatic relationship with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?x WHERE { FILTER ( ?j = ?h ) . { SELECT DISTINCT ?x ( COUNT ( ?p ) AS ?j ) WHERE { ?x property:diplomatic_relation ?p . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( MIN ( ?q ) AS ?h ) { SELECT DISTINCT ?e ( COUNT ( ?g ) AS ?q ) WHERE { ?e property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7333400 Q1937860
P27
Q15617994
USER
Which administrative territories are Miquel de Palol or Rigers Hoxha an inhabitant of ?
OR((Q1937860,P27,c(Q15617994)), (Q7333400,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1937860
relation P27
action find
entity Q7333400
relation P27
type Q15617994
{'OR': [['Q1937860', 'P27', {'concept': 'Q15617994'}], ['Q7333400', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?u property:P27 ?g . VALUES ( ?u ) { ( resource:Q1937860 ) ( resource:Q7333400 ) } } . ?g rdf:type ontology:Q15617994 }
Rigers Hoxha Miquel de Palol
action filter_type
action union
action find
entity Miquel de Palol
relation country of citizenship
action find
entity Rigers Hoxha
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Miquel de Palol', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Rigers Hoxha', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?u property:country_of_citizenship ?g . VALUES ( ?u ) { ( resource:Miquel_de_Palol ) ( resource:Rigers_Hoxha ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q222
SYSTEM
Spain, Albania
Q29 Q222
OR((Q1937860,P27,c(Q15617994)), (Q7333400,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1937860
relation P27
action find
entity Q7333400
relation P27
type Q15617994
[ANSWERS] are Miquel de Palol or Rigers Hoxha an inhabitant of
{'OR': [['Q1937860', 'P27', {'concept': 'Q15617994'}], ['Q7333400', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?u property:P27 ?g . VALUES ( ?u ) { ( resource:Q1937860 ) ( resource:Q7333400 ) } } . ?g rdf:type ontology:Q15617994 }
Spain Albania
Spain and Albania are Miquel de Palol or Rigers Hoxha an inhabitant of
Spain Albania
action filter_type
action union
action find
entity Miquel de Palol
relation country of citizenship
action find
entity Rigers Hoxha
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Miquel de Palol', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Rigers Hoxha', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?u property:country_of_citizenship ?g . VALUES ( ?u ) { ( resource:Miquel_de_Palol ) ( resource:Rigers_Hoxha ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with atmost 70 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 70
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?q <= 70 ) . { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?q ) WHERE { ?o rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 . ?o property:P530 ?z } GROUP BY ?o } }
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 70
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?q <= 70 ) . { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?q ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?z } GROUP BY ?o } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q30 Q159
SYSTEM
Brazil, United States of America, Russia
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 70
[ANSWERS] have tactful political relations with atmost 70 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?q <= 70 ) . { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?q ) WHERE { ?o rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 . ?o property:P530 ?z } GROUP BY ?o } }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Brazil, United States of America and Russia have tactful political relations with atmost 70 administrative territories
Brazil United States of America Russia
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 70
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?q <= 70 ) . { SELECT DISTINCT ?o ( COUNT ( ?z ) AS ?q ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o property:diplomatic_relation ?z } GROUP BY ?o } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q155 Q30 Q159
P17
Q15617994
USER
Which administrative territories are those ones a part of ?
(Q155,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q159,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q159', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . ?u property:P17 ?a }
Brazil United States of America Russia
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . ?u property:country ?a }
[]
designation for an administrative territorial entity
Q155 Q30 Q159
SYSTEM
Brazil, United States of America, Russia
Q155 Q30 Q159
(Q155,P17,c(Q15617994)) (Q30,P17,c(Q15617994)) (Q159,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS] are those ones a part of
['Q155', 'P17', {'concept': 'Q15617994'}] ['Q30', 'P17', {'concept': 'Q15617994'}] ['Q159', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } . ?u property:P17 ?a }
Brazil United States of America Russia
Brazil, United States of America and Russia are those ones a part of
Brazil United States of America Russia
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
['Brazil', 'country', {'concept': 'designation for an administrative territorial entity'}] ['United States of America', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Russia', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } . ?u property:country ?a }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q155 Q30 Q159
P36
Q56061
USER
Which administrative territories are the capitals of Brazil, United States of America and Russia ?
(Q155,P36,c(Q56061)) (Q30,P36,c(Q56061)) (Q159,P36,c(Q56061))
action union
action filter_type
action find
entity Q155
relation P36
type Q56061
action filter_type
action find
entity Q30
relation P36
type Q56061
action filter_type
action find
entity Q159
relation P36
type Q56061
['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q159', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q56061 . resource:Q30 property:P36 ?a } UNION { resource:Q155 property:P36 ?a . ?a rdf:type ontology:Q56061 } }
Brazil United States of America Russia
action union
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
action filter_type
action find
entity Russia
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['Russia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:administrative_territorial_entity . resource:United_States_of_America property:capital ?a } UNION { resource:Brazil property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity } }
[]
administrative territorial entity
Q649 Q8678 Q60
SYSTEM
Moscow, Rio de Janeiro, New York City
Q8678 Q60 Q61 Q649
(Q155,P36,c(Q56061)) (Q30,P36,c(Q56061)) (Q159,P36,c(Q56061))
action union
action filter_type
action find
entity Q155
relation P36
type Q56061
action filter_type
action find
entity Q30
relation P36
type Q56061
action filter_type
action find
entity Q159
relation P36
type Q56061
[ANSWERS] are the capitals of Brazil, United States of America and Russia
['Q155', 'P36', {'concept': 'Q56061'}] ['Q30', 'P36', {'concept': 'Q56061'}] ['Q159', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:Q56061 . resource:Q30 property:P36 ?a } UNION { resource:Q155 property:P36 ?a . ?a rdf:type ontology:Q56061 } }
Rio de Janeiro New York City Washington, D.C. Moscow
Moscow, Rio de Janeiro and New York City are the capitals of Brazil, United States of America and Russia
Moscow Rio de Janeiro New York City
action union
action filter_type
action find
entity Brazil
relation capital
type administrative territorial entity
action filter_type
action find
entity United States of America
relation capital
type administrative territorial entity
action filter_type
action find
entity Russia
relation capital
type administrative territorial entity
['Brazil', 'capital', {'concept': 'administrative territorial entity'}] ['United States of America', 'capital', {'concept': 'administrative territorial entity'}] ['Russia', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { ?a rdf:type ontology:administrative_territorial_entity . resource:United_States_of_America property:capital ?a } UNION { resource:Brazil property:capital ?a . ?a rdf:type ontology:administrative_territorial_entity } }
[]