Simple Question (Direct)
Simple Question
Q3760630
P20
Q56061
USER
Where did George Preddy die ?
(Q3760630,P20,c(Q56061))
action filter_type
action find
entity Q3760630
relation P20
type Q56061
['Q3760630', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q3760630 property:P20 ?d }
George Preddy
action filter_type
action find
entity George Preddy
relation place of death
type administrative territorial entity
['George Preddy', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:George_Preddy property:place_of_death ?d }
[]
administrative territorial entity
Q3992
SYSTEM
Liège
Q3992
(Q3760630,P20,c(Q56061))
action filter_type
action find
entity Q3760630
relation P20
type Q56061
George Preddy died in [ANSWER]
['Q3760630', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q56061 . resource:Q3760630 property:P20 ?d }
Liège
George Preddy died in Liège
Liège
action filter_type
action find
entity George Preddy
relation place of death
type administrative territorial entity
['George Preddy', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:administrative_territorial_entity . resource:George_Preddy property:place_of_death ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3760630
P166
Q618779
USER
Which awards were received by George Preddy ?
(Q3760630,P166,c(Q618779))
action filter_type
action find
entity Q3760630
relation P166
type Q618779
['Q3760630', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?o WHERE { resource:Q3760630 property:P166 ?o . ?o rdf:type ontology:Q618779 }
George Preddy
action filter_type
action find
entity George Preddy
relation award received
type award
['George Preddy', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?o WHERE { resource:George_Preddy property:award_received ?o . ?o rdf:type ontology:award }
[]
award
Q145752 Q852071
SYSTEM
Purple Heart, Silver Star
Q145752 Q852071
(Q3760630,P166,c(Q618779))
action filter_type
action find
entity Q3760630
relation P166
type Q618779
The [ANSWERS] were received by George Preddy
['Q3760630', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?o WHERE { resource:Q3760630 property:P166 ?o . ?o rdf:type ontology:Q618779 }
Purple Heart Silver Star
The Purple Heart and Silver Star were received by George Preddy
Purple Heart Silver Star
action filter_type
action find
entity George Preddy
relation award received
type award
['George Preddy', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?o WHERE { resource:George_Preddy property:award_received ?o . ?o rdf:type ontology:award }
[]
Clarification
Simple Question|Single Entity|Indirect
Q852071
P17
Q15617994
USER
Which administrative territory is that award present in ?
(Q852071,P17,c(Q15617994))
action filter_type
action find
entity Q852071
relation P17
type Q15617994
['Q852071', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q852071 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Silver Star
action filter_type
action find
entity Silver Star
relation country
type designation for an administrative territorial entity
['Silver Star', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Silver_Star property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q852071
SYSTEM
Did you mean Silver Star ?
Q145752 Q852071
(Q145752,P17,c(Q15617994)) (Q852071,P17,c(Q15617994))
[ANSWER]
['Q145752', 'P17', {'concept': 'Q15617994'}] ['Q852071', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q852071 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Purple Heart Silver Star
Did you mean Silver Star ?
Silver Star
['Purple Heart', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Silver Star', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Silver_Star property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q852071,P17,c(Q15617994))
['Q852071', 'P17', {'concept': 'Q15617994'}]
['Silver Star', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q852071,P17,c(Q15617994))
action filter_type
action find
entity Q852071
relation P17
type Q15617994
That award is the [ANSWER]
['Q852071', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q852071 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
United States of America
That award is the United States of America
United States of America
action filter_type
action find
entity Silver Star
relation country
type designation for an administrative territorial entity
['Silver Star', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Silver_Star property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q30 Q2008261 Q799991
P530
Q1048835
USER
Does that administrative territory have diplomatic associations with Eldorado dos Carajás and Ivanivka ?
(Q30,P530,Q2008261) (Q30,P530,Q799991)
action is_in
entity Q30
action intersection
action find_reverse
entity Q2008261
relation P530
action find_reverse
entity Q799991
relation P530
['Q30', 'P530', 'Q2008261'] ['Q30', 'P530', 'Q799991']
ASK WHERE { resource:Q30 property:P530 resource:Q799991 . resource:Q30 property:P530 resource:Q2008261 }
United States of America Eldorado dos Carajás Ivanivka
action is_in
entity United States of America
action intersection
action find_reverse
entity Eldorado dos Carajás
relation diplomatic relation
action find_reverse
entity Ivanivka
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Eldorado dos Carajás'] ['United States of America', 'diplomatic relation', 'Ivanivka']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Ivanivka . resource:United_States_of_America property:diplomatic_relation resource:Eldorado_dos_Carajás }
[]
political territorial entity
SYSTEM
NO
(Q30,P530,Q2008261) (Q30,P530,Q799991)
action is_in
entity Q30
action intersection
action find_reverse
entity Q2008261
relation P530
action find_reverse
entity Q799991
relation P530
[ANSWER]
['Q30', 'P530', 'Q2008261'] ['Q30', 'P530', 'Q799991']
ASK WHERE { resource:Q30 property:P530 resource:Q799991 . resource:Q30 property:P530 resource:Q2008261 }
No
action is_in
entity United States of America
action intersection
action find_reverse
entity Eldorado dos Carajás
relation diplomatic relation
action find_reverse
entity Ivanivka
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Eldorado dos Carajás'] ['United States of America', 'diplomatic relation', 'Ivanivka']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Ivanivka . resource:United_States_of_America property:diplomatic_relation resource:Eldorado_dos_Carajás }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P840
Q11424 Q15416
USER
How many films and television programs have their narrative set in United States of America ?
(c(Q11424),P840,Q30) (c(Q15416),P840,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P840
type Q11424
action filter_type
action find_reverse
entity Q30
relation P840
type Q15416
[{'concept': 'Q11424'}, 'P840', 'Q30'] [{'concept': 'Q15416'}, 'P840', 'Q30']
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { ?a property:P840 resource:Q30 . ?a rdf:type ontology:Q11424 } UNION { ?a property:P840 resource:Q30 . ?a rdf:type ontology:Q15416 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation narrative location
type film
action filter_type
action find_reverse
entity United States of America
relation narrative location
type television program
[{'concept': 'film'}, 'narrative location', 'United States of America'] [{'concept': 'television program'}, 'narrative location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { ?a property:narrative_location resource:United_States_of_America . ?a rdf:type ontology:film } UNION { ?a property:narrative_location resource:United_States_of_America . ?a rdf:type ontology:television_program } }
[]
film television program
SYSTEM
3 films and 11 television programs
Q7246112 Q6939624 Q7753207 Q7805092 Q509805 Q18153618 Q172284 Q5902601 Q974961 Q40302 Q1753093 Q1767491 Q930134 Q5915000
(c(Q11424),P840,Q30) (c(Q15416),P840,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P840
type Q11424
action filter_type
action find_reverse
entity Q30
relation P840
type Q15416
[ANSWER]
[{'concept': 'Q11424'}, 'P840', 'Q30'] [{'concept': 'Q15416'}, 'P840', 'Q30']
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { ?a property:P840 resource:Q30 . ?a rdf:type ontology:Q11424 } UNION { ?a property:P840 resource:Q30 . ?a rdf:type ontology:Q15416 } }
Private Lies Murrow The National Parks: America's Best Idea Time Share Sanctimony The Roosevelts Lady and the Tramp Horatio's Drive: America's First Road Trip Les Uns et les Autres The Fox and the Hound Ben 10: Race Against Time Ben 10: Alien Swarm Cats Don't Dance House of Harmony
3 films and 11 television programs
action count
action union
action filter_type
action find_reverse
entity United States of America
relation narrative location
type film
action filter_type
action find_reverse
entity United States of America
relation narrative location
type television program
[{'concept': 'film'}, 'narrative location', 'United States of America'] [{'concept': 'television program'}, 'narrative location', 'United States of America']
SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) WHERE { { ?a property:narrative_location resource:United_States_of_America . ?a rdf:type ontology:film } UNION { ?a property:narrative_location resource:United_States_of_America . ?a rdf:type ontology:television_program } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1011
P530
Q15617994 Q15617994 Q1048835
USER
How many administrative territories have a diplomatic relationship with lesser number of administrative territories or political territories than Cape Verde ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1011
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P530 resource:Q1011 . { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?i rdf:type ?c } } } . FILTER ( ?s < ?d ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?k rdf:type ?y } GROUP BY ?b } }
Cape Verde
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:diplomatic_relation resource:Cape_Verde . { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?i rdf:type ?c } } } . FILTER ( ?s < ?d ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?y } GROUP BY ?b } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
SYSTEM
152
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 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 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 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 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q1011
relation P530
type Q15617994
type Q1048835
[ANSWER]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P530 resource:Q1011 . { VALUES ( ?c ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?i rdf:type ?c } } } . FILTER ( ?s < ?d ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?k rdf:type ?y } GROUP BY ?b } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium 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 Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
152
action count
action less
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Cape Verde
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:diplomatic_relation resource:Cape_Verde . { VALUES ( ?c ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?i rdf:type ?c } } } . FILTER ( ?s < ?d ) . { SELECT DISTINCT ?b ( COUNT ( ?k ) AS ?s ) WHERE { VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?k rdf:type ?y } GROUP BY ?b } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4574998 Q2008261
P17
Q15617994
USER
Which administrative territories are Eldorado dos Carajás or 1972 Copa Perú a part of ?
OR((Q2008261,P17,c(Q15617994)), (Q4574998,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2008261
relation P17
action find
entity Q4574998
relation P17
type Q15617994
{'OR': [['Q2008261', 'P17', {'concept': 'Q15617994'}], ['Q4574998', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?e ) { ( resource:Q2008261 ) ( resource:Q4574998 ) } . ?e property:P17 ?u } . ?u rdf:type ontology:Q15617994 }
1972 Copa Perú Eldorado dos Carajás
action filter_type
action union
action find
entity Eldorado dos Carajás
relation country
action find
entity 1972 Copa Perú
relation country
type designation for an administrative territorial entity
{'OR': [['Eldorado dos Carajás', 'country', {'concept': 'designation for an administrative territorial entity'}], ['1972 Copa Perú', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?e ) { ( resource:Eldorado_dos_Carajás ) ( resource:1972_Copa_Perú ) } . ?e property:country ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q419
SYSTEM
Brazil, Peru
Q155 Q419
OR((Q2008261,P17,c(Q15617994)), (Q4574998,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q2008261
relation P17
action find
entity Q4574998
relation P17
type Q15617994
[ANSWERS] are Eldorado dos Carajás or 1972 Copa Perú a part of
{'OR': [['Q2008261', 'P17', {'concept': 'Q15617994'}], ['Q4574998', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?e ) { ( resource:Q2008261 ) ( resource:Q4574998 ) } . ?e property:P17 ?u } . ?u rdf:type ontology:Q15617994 }
Brazil Peru
Brazil and Peru are Eldorado dos Carajás or 1972 Copa Perú a part of
Brazil Peru
action filter_type
action union
action find
entity Eldorado dos Carajás
relation country
action find
entity 1972 Copa Perú
relation country
type designation for an administrative territorial entity
{'OR': [['Eldorado dos Carajás', 'country', {'concept': 'designation for an administrative territorial entity'}], ['1972 Copa Perú', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { VALUES ( ?e ) { ( resource:Eldorado_dos_Carajás ) ( resource:1972_Copa_Perú ) } . ?e property:country ?u } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories holds diplomatic relationship with approximately 38 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 38
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:P530 ?n . ?w rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?h = 38 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:diplomatic_relation ?n . ?w rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?h = 38 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 38
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:P530 ?n . ?w rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q15617994 } GROUP BY ?w } . FILTER ( ?h = 38 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?h ) WHERE { ?w property:diplomatic_relation ?n . ?w rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . FILTER ( ?h = 38 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q739
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with lesser number of administrative territories than Colombia ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?i ) WHERE { ?h property:P530 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?i < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q739 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } }
Colombia
action count
action less
action find_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
entity Colombia
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 ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?i ) WHERE { ?h property:diplomatic_relation ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?i < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Colombia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
95
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q739
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?i ) WHERE { ?h property:P530 ?t . ?h rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?h } . FILTER ( ?i < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Q739 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
95
action count
action less
action find_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
entity Colombia
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 ( ?h ) AS ?v ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?t ) AS ?i ) WHERE { ?h property:diplomatic_relation ?t . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . FILTER ( ?i < ?b ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?b ) WHERE { resource:Colombia property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q928
P530
Q15617994 Q15617994
USER
And also tell me about Philippines?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q928
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q928 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?u < ?q ) . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?u ) WHERE { ?d property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } }
Philippines
action count
action less
action find_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
entity Philippines
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 ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Philippines property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u < ?q ) . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?u ) WHERE { ?d property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
111
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q34 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q928
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q928 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?u < ?q ) . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?u ) WHERE { ?d property:P530 ?i . ?i rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?d } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Sweden 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 Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia 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 Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
111
action count
action less
action find_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
entity Philippines
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 ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Philippines property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?u < ?q ) . { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?u ) WHERE { ?d property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P610
Q14524493
USER
What is the highest point of Brazil ?
(Q155,P610,c(Q14524493))
action filter_type
action find
entity Q155
relation P610
type Q14524493
['Q155', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?a WHERE { resource:Q155 property:P610 ?a . ?a rdf:type ontology:Q14524493 }
Brazil
action filter_type
action find
entity Brazil
relation highest point
type terrain
['Brazil', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?a WHERE { resource:Brazil property:highest_point ?a . ?a rdf:type ontology:terrain }
[]
terrain
Q739484
SYSTEM
Pico da Neblina
Q739484
(Q155,P610,c(Q14524493))
action filter_type
action find
entity Q155
relation P610
type Q14524493
The highest point of Brazil is the [ANSWER]
['Q155', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?a WHERE { resource:Q155 property:P610 ?a . ?a rdf:type ontology:Q14524493 }
Pico da Neblina
The highest point of Brazil is the Pico da Neblina
Pico da Neblina
action filter_type
action find
entity Brazil
relation highest point
type terrain
['Brazil', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?a WHERE { resource:Brazil property:highest_point ?a . ?a rdf:type ontology:terrain }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P921
Q2342494
USER
Which collectable has Brazil as its main topic ?
(c(Q2342494),P921,Q155)
action filter_type
action find_reverse
entity Q155
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q155']
SELECT DISTINCT ?h WHERE { ?h property:P921 resource:Q155 . ?h rdf:type ontology:Q2342494 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'Brazil']
SELECT DISTINCT ?h WHERE { ?h property:main_subject resource:Brazil . ?h rdf:type ontology:collectable }
[]
collectable
Q6152025
SYSTEM
Travels in Brazil
Q6152025
(c(Q2342494),P921,Q155)
action filter_type
action find_reverse
entity Q155
relation P921
type Q2342494
[ANSWER] has Brazil as its main topic
[{'concept': 'Q2342494'}, 'P921', 'Q155']
SELECT DISTINCT ?h WHERE { ?h property:P921 resource:Q155 . ?h rdf:type ontology:Q2342494 }
Travels in Brazil
Travels in Brazil has Brazil as its main topic
Travels in Brazil
action filter_type
action find_reverse
entity Brazil
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'Brazil']
SELECT DISTINCT ?h WHERE { ?h property:main_subject resource:Brazil . ?h rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q155
P1532
Q6979593
USER
Who play for that administrative territory ?
(c(Q6979593),P1532,Q6152025)
action filter_type
action find_reverse
entity Q155
relation P1532
type Q6979593
[{'concept': 'Q6979593'}, 'P1532', 'Q6152025']
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q155 . ?i rdf:type ontology:Q6979593 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Travels in Brazil']
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Brazil . ?i rdf:type ontology:national_association_football_team }
[]
national association football team
Q757014 Q23013382 Q899189
SYSTEM
Brazil women's national football team, Brazil women's national under-17 football team, Brazil Olympic football team
Q23013382 Q757014 Q899189 Q16845544
(c(Q6979593),P1532,Q6152025)
action filter_type
action find_reverse
entity Q155
relation P1532
type Q6979593
[ANSWERS] play for that administrative territory
[{'concept': 'Q6979593'}, 'P1532', 'Q6152025']
SELECT DISTINCT ?i WHERE { ?i property:P1532 resource:Q155 . ?i rdf:type ontology:Q6979593 }
Brazil women's national under-17 football team Brazil women's national football team Brazil Olympic football team Brazil women's national under-20 football team
Brazil women's national football team, Brazil women's national under-17 football team and Brazil Olympic football team play for that administrative territory
Brazil women's national football team Brazil women's national under-17 football team Brazil Olympic football team
action filter_type
action find_reverse
entity Brazil
relation country for sport
type national association football team
[{'concept': 'national association football team'}, 'country for sport', 'Travels in Brazil']
SELECT DISTINCT ?i WHERE { ?i property:country_for_sport resource:Brazil . ?i rdf:type ontology:national_association_football_team }
[]