Simple Question (Direct)
Simple Question
Q332808
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Pierre Cosso ?
(Q332808,P27,c(Q15617994))
action filter_type
action find
entity Q332808
relation P27
type Q15617994
['Q332808', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q332808 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
Pierre Cosso
action filter_type
action find
entity Pierre Cosso
relation country of citizenship
type designation for an administrative territorial entity
['Pierre Cosso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Pierre_Cosso property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q332808,P27,c(Q15617994))
action filter_type
action find
entity Q332808
relation P27
type Q15617994
The [ANSWER] is the country of citizenship of Pierre Cosso
['Q332808', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q332808 property:P27 ?l . ?l rdf:type ontology:Q15617994 }
France
The France is the country of citizenship of Pierre Cosso
France
action filter_type
action find
entity Pierre Cosso
relation country of citizenship
type designation for an administrative territorial entity
['Pierre Cosso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Pierre_Cosso property:country_of_citizenship ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P530
Q15617994
USER
What administrative territories have diplomatic relationships with that one ?
(Q142,P530,c(Q15617994))
action filter_type
action find
entity Q142
relation P530
type Q15617994
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q142 property:P530 ?i . ?i rdf:type ontology:Q15617994 }
France
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:France property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q711 Q159 Q222 Q801 Q145 Q155 Q1011 Q228 Q32 Q17 Q30 Q399 Q27 Q403 Q38
(Q142,P530,c(Q15617994))
action filter_type
action find
entity Q142
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with that one
['Q142', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q142 property:P530 ?i . ?i rdf:type ontology:Q15617994 }
Mongolia Russia Albania Israel United Kingdom Brazil Cape Verde Andorra Luxembourg Japan United States of America Armenia Ireland Serbia Italy
Italy, Brazil and United States of America have diplomatic relationships with that one
Italy Brazil United States of America
action filter_type
action find
entity France
relation diplomatic relation
type designation for an administrative territorial entity
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:France property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q37
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with lesser number of administrative territories than Lithuania ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q37
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P530 resource:Q37 . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?z < ?h ) }
Lithuania
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Lithuania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:diplomatic_relation resource:Lithuania . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z < ?h ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
132
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q45 Q792 Q790 Q954 Q889 Q884 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q32 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q37
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:P530 ?w . ?w rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:P530 resource:Q37 . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?z < ?h ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad Portugal El Salvador Haiti Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Luxembourg 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 Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus 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 Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
132
action count
action less
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find_reverse
entity Lithuania
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?x ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?r ) AS ?z ) WHERE { ?r property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?h ) WHERE { ?b property:diplomatic_relation resource:Lithuania . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z < ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P35
Q502895
USER
Who are elected as the head of state of Brazil ?
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q155 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Brazil
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Brazil property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]
common name
Q37181 Q230578 Q40722
SYSTEM
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso, Dilma Rousseff
Q37181 Q230578 Q463533 Q485946 Q236503 Q40722
(Q155,P35,c(Q502895))
action filter_type
action find
entity Q155
relation P35
type Q502895
[ANSWERS] are elected as the head of state of Brazil
['Q155', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q155 property:P35 ?m . ?m rdf:type ontology:Q502895 }
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Michel Temer Itamar Franco Fernando Collor de Mello Dilma Rousseff
Luiz Inácio Lula da Silva, Fernando Henrique Cardoso and Dilma Rousseff are elected as the head of state of Brazil
Luiz Inácio Lula da Silva Fernando Henrique Cardoso Dilma Rousseff
action filter_type
action find
entity Brazil
relation head of state
type common name
['Brazil', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Brazil property:head_of_state ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3773787
Q502895
USER
And how about Andreotti V Cabinet?
(Q3773787,P35,c(Q502895))
action filter_type
action find
entity Q3773787
relation P35
type Q502895
['Q3773787', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q3773787 property:P35 ?b . ?b rdf:type ontology:Q502895 }
Andreotti V Cabinet
action filter_type
action find
entity Andreotti V Cabinet
relation head of state
type common name
['Andreotti V Cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Andreotti_V_Cabinet property:head_of_state ?b . ?b rdf:type ontology:common_name }
[]
common name
Q1233
SYSTEM
Sandro Pertini
Q1233
(Q3773787,P35,c(Q502895))
action filter_type
action find
entity Q3773787
relation P35
type Q502895
[ANSWER]
['Q3773787', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { resource:Q3773787 property:P35 ?b . ?b rdf:type ontology:Q502895 }
Sandro Pertini
Sandro Pertini
action filter_type
action find
entity Andreotti V Cabinet
relation head of state
type common name
['Andreotti V Cabinet', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { resource:Andreotti_V_Cabinet property:head_of_state ?b . ?b rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 2374 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2374
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?d = 2374 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2374
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?d = 2374 ) }
[]
musical instrument common name
Q46185 Q8338 Q1444
SYSTEM
bass guitar, trumpet, organ
Q46185 Q8338 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2374
[ANSWERS] are played by approximately 2374 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P1303 ?v . ?v rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?v } . FILTER ( ?d = 2374 ) }
bass guitar trumpet organ drum kit
Bass guitar, trumpet and organ are played by approximately 2374 people
bass guitar trumpet organ
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2374
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:instrument ?v . ?v rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?v } . FILTER ( ?d = 2374 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P88
Q502895 Q18783400 Q502895
USER
How many people did the commissioning of around 1 genres of sculpture or people ?
(c(Q18783400)|c(Q502895),P88,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q18783400
action find_reverse_tuple_counts
relation P88
type Q502895
type Q502895
value 1
[[{'concept': 'Q18783400'}, {'concept': 'Q502895'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?n ) { ( ontology:Q18783400 ) ( ontology:Q502895 ) } . ?t rdf:type ?n } GROUP BY ?y } . FILTER ( ?p = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type genre of sculpture
action find_reverse_tuple_counts
relation commissioned by
type common name
type common name
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'common name'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?n ) { ( ontology:genre_of_sculpture ) ( ontology:common_name ) } . ?t rdf:type ?n } GROUP BY ?y } . FILTER ( ?p = 1 ) }
[]
common name genre of sculpture common name
SYSTEM
10
Q48544 Q48547 Q7811659 Q2871482 Q3766950 Q6224954 Q336580 Q590218 Q517 Q25690
(c(Q18783400)|c(Q502895),P88,c(Q502895))
action count
action approx
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q18783400
action find_reverse_tuple_counts
relation P88
type Q502895
type Q502895
value 1
[ANSWER]
[[{'concept': 'Q18783400'}, {'concept': 'Q502895'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?n ) { ( ontology:Q18783400 ) ( ontology:Q502895 ) } . ?t rdf:type ?n } GROUP BY ?y } . FILTER ( ?p = 1 ) }
Cosimo de' Medici Cosimo I de' Medici, Grand Duke of Tuscany Tobias Rustat Auguste de Morlhon Giovanni Carandente John Campbell, 1st Baron Cawdor Gerald Grosvenor, 6th Duke of Westminster Ferenc Esterházy Napoleon John Russell, 6th Duke of Bedford
10
action count
action approx
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type genre of sculpture
action find_reverse_tuple_counts
relation commissioned by
type common name
type common name
value 1
[[{'concept': 'genre of sculpture'}, {'concept': 'common name'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?t ) AS ?p ) WHERE { VALUES ( ?n ) { ( ontology:genre_of_sculpture ) ( ontology:common_name ) } . ?t rdf:type ?n } GROUP BY ?y } . FILTER ( ?p = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q15617994 Q56061 Q486972
USER
How many administrative territories have exactly 2 administrative territories or human settlements have their first city ?
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 2
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } GROUP BY ?r } . FILTER ( ?b = 2 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?r } . FILTER ( ?b = 2 ) }
[]
designation for an administrative territorial entity administrative territorial entity human settlement
SYSTEM
8
Q805 Q258 Q1020 Q41 Q30 Q38 Q199688 Q517333
(c(Q56061)|c(Q486972),P1376,c(Q15617994))
action count
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
value 2
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } } GROUP BY ?r } . FILTER ( ?b = 2 ) }
Yemen South Africa Malawi Greece United States of America Italy Almohad Principality of Polotsk
8
action count
action equal
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
value 2
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?g ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?b ) WHERE { ?o rdf:type ?j . VALUES ( ?j ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?r } . FILTER ( ?b = 2 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q15617994 Q1048835 Q15617994
USER
How many administrative territories have a diplomatic relationship with around 16 political territories and administrative territories ?
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 16
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } UNION { ?g property:P530 ?h . ?g rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?m = 16 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 16
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } UNION { ?g property:diplomatic_relation ?h . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?m = 16 ) }
[]
designation for an administrative territorial entity political territorial entity designation for an administrative territorial entity
SYSTEM
20
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q711 Q252 Q403 Q258 Q43 Q796 Q794 Q347 Q17 Q79 Q1016 Q1011 Q953
(c(Q1048835)|c(Q15617994),P530,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 16
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } UNION { ?g property:P530 ?h . ?g rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } } GROUP BY ?h } . FILTER ( ?m = 16 ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Mongolia Indonesia Serbia South Africa Turkey Iraq Iran Liechtenstein Japan Egypt Libya Cape Verde Zambia
20
action count
action approx
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 16
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } UNION { ?g property:diplomatic_relation ?h . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?h } . FILTER ( ?m = 16 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5083684 Q37181
P102
Q7210356
USER
Which political organizations do Luiz Inácio Lula da Silva or Charles Wood, 2nd Earl of Halifax belong to ?
OR((Q37181,P102,c(Q7210356)), (Q5083684,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q37181
relation P102
action find
entity Q5083684
relation P102
type Q7210356
{'OR': [['Q37181', 'P102', {'concept': 'Q7210356'}], ['Q5083684', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q7210356 . { { resource:Q37181 property:P102 ?l } UNION { resource:Q5083684 property:P102 ?l } } }
Charles Wood, 2nd Earl of Halifax Luiz Inácio Lula da Silva
action filter_type
action union
action find
entity Luiz Inácio Lula da Silva
relation member of political party
action find
entity Charles Wood, 2nd Earl of Halifax
relation member of political party
type political organization
{'OR': [['Luiz Inácio Lula da Silva', 'member of political party', {'concept': 'political organization'}], ['Charles Wood, 2nd Earl of Halifax', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_organization . { { resource:Luiz_Inácio_Lula_da_Silva property:member_of_political_party ?l } UNION { resource:Charles_Wood,_2nd_Earl_of_Halifax property:member_of_political_party ?l } } }
[]
political organization
Q657089 Q9626
SYSTEM
Workers' Party, Conservative Party
Q657089 Q9626
OR((Q37181,P102,c(Q7210356)), (Q5083684,P102,c(Q7210356)))
action filter_type
action union
action find
entity Q37181
relation P102
action find
entity Q5083684
relation P102
type Q7210356
Party [ANSWERS] Luiz Inácio Lula da Silva or Charles Wood, 2nd Earl of Halifax belong to
{'OR': [['Q37181', 'P102', {'concept': 'Q7210356'}], ['Q5083684', 'P102', {'concept': 'Q7210356'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q7210356 . { { resource:Q37181 property:P102 ?l } UNION { resource:Q5083684 property:P102 ?l } } }
Workers' Party Conservative Party
Party Workers' Party and Conservative Party Luiz Inácio Lula da Silva or Charles Wood, 2nd Earl of Halifax belong to
Workers' Party Conservative Party
action filter_type
action union
action find
entity Luiz Inácio Lula da Silva
relation member of political party
action find
entity Charles Wood, 2nd Earl of Halifax
relation member of political party
type political organization
{'OR': [['Luiz Inácio Lula da Silva', 'member of political party', {'concept': 'political organization'}], ['Charles Wood, 2nd Earl of Halifax', 'member of political party', {'concept': 'political organization'}]]}
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:political_organization . { { resource:Luiz_Inácio_Lula_da_Silva property:member_of_political_party ?l } UNION { resource:Charles_Wood,_2nd_Earl_of_Halifax property:member_of_political_party ?l } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q657089 Q9626
P17
Q15617994
USER
Which administrative territories are those political organizations a part of ?
(Q657089,P17,c(Q15617994)) (Q9626,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
['Q657089', 'P17', {'concept': 'Q15617994'}] ['Q9626', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?h property:P17 ?z . ?z rdf:type ontology:Q15617994 . VALUES ( ?h ) { ( resource:Q657089 ) ( resource:Q9626 ) } }
Workers' Party Conservative Party
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
["Workers' Party", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?h property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?h ) { ( resource:Workers'_Party ) ( resource:Conservative_Party ) } }
[]
designation for an administrative territorial entity
Q155 Q145
SYSTEM
Brazil, United Kingdom
Q155 Q145
(Q657089,P17,c(Q15617994)) (Q9626,P17,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P17
type Q15617994
[ANSWERS] are those political organizations a part of
['Q657089', 'P17', {'concept': 'Q15617994'}] ['Q9626', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { ?h property:P17 ?z . ?z rdf:type ontology:Q15617994 . VALUES ( ?h ) { ( resource:Q657089 ) ( resource:Q9626 ) } }
Brazil United Kingdom
Brazil and United Kingdom are those political organizations a part of
Brazil United Kingdom
action filter_type
action find
entity prev_answer
relation country
type designation for an administrative territorial entity
["Workers' Party", 'country', {'concept': 'designation for an administrative territorial entity'}] ['Conservative Party', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { ?h property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?h ) { ( resource:Workers'_Party ) ( resource:Conservative_Party ) } }
[]