Simple Question (Direct)
Simple Question
Q7130780
P495
Q15617994
USER
Where did Panduranga Mahatyam originate ?
(Q7130780,P495,c(Q15617994))
action filter_type
action find
entity Q7130780
relation P495
type Q15617994
['Q7130780', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7130780 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
Panduranga Mahatyam
action filter_type
action find
entity Panduranga Mahatyam
relation country of origin
type designation for an administrative territorial entity
['Panduranga Mahatyam', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Panduranga_Mahatyam property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q7130780,P495,c(Q15617994))
action filter_type
action find
entity Q7130780
relation P495
type Q15617994
Panduranga Mahatyam originated in [ANSWER]
['Q7130780', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q7130780 property:P495 ?x . ?x rdf:type ontology:Q15617994 }
India
Panduranga Mahatyam originated in India
India
action filter_type
action find
entity Panduranga Mahatyam
relation country of origin
type designation for an administrative territorial entity
['Panduranga Mahatyam', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Panduranga_Mahatyam property:country_of_origin ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q668
P859
Q939954
USER
Who did that administrative territory sponsor ?
(c(Q939954),P859,Q668)
action filter_type
action find_reverse
entity Q668
relation P859
type Q939954
[{'concept': 'Q939954'}, 'P859', 'Q668']
SELECT DISTINCT ?q WHERE { ?q property:P859 resource:Q668 . ?q rdf:type ontology:Q939954 }
India
action filter_type
action find_reverse
entity India
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'India']
SELECT DISTINCT ?q WHERE { ?q property:sponsor resource:India . ?q rdf:type ontology:Magnetic_confinement_fusion }
[]
Magnetic confinement fusion
Q191788
SYSTEM
ITER
Q191788
(c(Q939954),P859,Q668)
action filter_type
action find_reverse
entity Q668
relation P859
type Q939954
That administrative territory sponsored by [ANSWER]
[{'concept': 'Q939954'}, 'P859', 'Q668']
SELECT DISTINCT ?q WHERE { ?q property:P859 resource:Q668 . ?q rdf:type ontology:Q939954 }
ITER
That administrative territory sponsored by ITER
ITER
action filter_type
action find_reverse
entity India
relation sponsor
type Magnetic confinement fusion
[{'concept': 'Magnetic confinement fusion'}, 'sponsor', 'India']
SELECT DISTINCT ?q WHERE { ?q property:sponsor resource:India . ?q rdf:type ontology:Magnetic_confinement_fusion }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P530
Q15617994
USER
Who holds diplomatic relationship with India ?
(Q668,P530,c(Q15617994))
action filter_type
action find
entity Q668
relation P530
type Q15617994
['Q668', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q668 property:P530 ?u . ?u rdf:type ontology:Q15617994 }
India
action filter_type
action find
entity India
relation diplomatic relation
type designation for an administrative territorial entity
['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:India property:diplomatic_relation ?u . ?u 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
Q155 Q30 Q159 Q38 Q801
(Q668,P530,c(Q15617994))
action filter_type
action find
entity Q668
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with India
['Q668', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q668 property:P530 ?u . ?u rdf:type ontology:Q15617994 }
Brazil United States of America Russia Italy Israel
Italy, Brazil and United States of America hold diplomatic relationship with India
Italy Brazil United States of America
action filter_type
action find
entity India
relation diplomatic relation
type designation for an administrative territorial entity
['India', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:India property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q884
Q15617994
USER
And also tell me about South Korea?
(Q884,P530,c(Q15617994))
action filter_type
action find
entity Q884
relation P530
type Q15617994
['Q884', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q884 property:P530 ?t . ?t rdf:type ontology:Q15617994 }
South Korea
action filter_type
action find
entity South Korea
relation diplomatic relation
type designation for an administrative territorial entity
['South Korea', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:South_Korea property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q30 Q159
SYSTEM
Italy, United States of America, Russia
Q159 Q148 Q17 Q30 Q38
(Q884,P530,c(Q15617994))
action filter_type
action find
entity Q884
relation P530
type Q15617994
[ANSWERS]
['Q884', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q884 property:P530 ?t . ?t rdf:type ontology:Q15617994 }
Russia People's Republic of China Japan United States of America Italy
Italy United States of America Russia
action filter_type
action find
entity South Korea
relation diplomatic relation
type designation for an administrative territorial entity
['South Korea', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:South_Korea property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q691
P530
Q1048835 Q15617994
USER
How many political territories have diplomatic relationships with around the same number of administrative territories as Papua New Guinea ?
(c(Q15617994),P530,c(Q1048835))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?y = ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q691 property:P530 ?s . ?s rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:P530 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?e } }
Papua New Guinea
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?y = ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:diplomatic_relation ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
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
action count
action filter_type
action find
entity Q691
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?y = ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Q691 property:P530 ?s . ?s rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:P530 ?m . ?e rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 } GROUP BY ?e } }
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
action count
action filter_type
action find
entity Papua New Guinea
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?y = ?x ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) WHERE { resource:Papua_New_Guinea property:diplomatic_relation ?s . ?s rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?y ) WHERE { ?e property:diplomatic_relation ?m . ?e rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q30 Q94
P123
Q166142
USER
How many applications produced United States of America or Android ?
(c(Q166142),P123,Q30) (c(Q166142),P123,Q94)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P123
type Q166142
action filter_type
action find_reverse
entity Q94
relation P123
type Q166142
[{'concept': 'Q166142'}, 'P123', 'Q30'] [{'concept': 'Q166142'}, 'P123', 'Q94']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?r ) { ( resource:Q30 ) ( resource:Q94 ) } . ?z property:P123 ?r }
United States of America Android
action count
action union
action filter_type
action find_reverse
entity United States of America
relation publisher
type application
action filter_type
action find_reverse
entity Android
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'United States of America'] [{'concept': 'application'}, 'publisher', 'Android']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?r ) { ( resource:United_States_of_America ) ( resource:Android ) } . ?z property:publisher ?r }
[]
application
SYSTEM
3
Q862542 Q3048269 Q2100142
(c(Q166142),P123,Q30) (c(Q166142),P123,Q94)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P123
type Q166142
action filter_type
action find_reverse
entity Q94
relation P123
type Q166142
[ANSWER]
[{'concept': 'Q166142'}, 'P123', 'Q30'] [{'concept': 'Q166142'}, 'P123', 'Q94']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?r ) { ( resource:Q30 ) ( resource:Q94 ) } . ?z property:P123 ?r }
Star Wars: Republic Commando The Lost Crown: A Ghost-Hunting Adventure Pocket God
3
action count
action union
action filter_type
action find_reverse
entity United States of America
relation publisher
type application
action filter_type
action find_reverse
entity Android
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'United States of America'] [{'concept': 'application'}, 'publisher', 'Android']
SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { VALUES ( ?r ) { ( resource:United_States_of_America ) ( resource:Android ) } . ?z property:publisher ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories are known to have diplomatic connections with exactly 106 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 106
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?x ) WHERE { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?x = 106 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 106
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?x ) WHERE { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?x = 106 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
1
Q408
(c(Q1048835),P530,c(Q15617994))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 106
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?x ) WHERE { ?y property:P530 ?z . ?y rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?x = 106 ) }
Australia
1
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 106
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?r ) WHERE { { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?x ) WHERE { ?y property:diplomatic_relation ?z . ?y rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?x = 106 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q967
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with more number of administrative territories than Burundi ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q967
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?o ) WHERE { ?t property:P530 ?a . ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q967 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?e ) }
Burundi
action count
action greater
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 Burundi
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 ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?o ) WHERE { ?t property:diplomatic_relation ?a . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Burundi property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?e ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
109
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q967
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?o ) WHERE { ?t property:P530 ?a . ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q967 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?e ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
109
action count
action greater
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 Burundi
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 ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?o ) WHERE { ?t property:diplomatic_relation ?a . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Burundi property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?e ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q36
P530
Q15617994 Q15617994
USER
And what about Poland?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q36
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?o ) WHERE { ?e property:P530 ?h . ?e rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Q36 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?s ) }
Poland
action count
action greater
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 Poland
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 ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?o ) WHERE { ?e property:diplomatic_relation ?h . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Poland property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?s ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
50
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q822 Q241 Q32 Q31 Q30 Q928 Q929 Q39 Q38 Q230 Q27 Q843 Q184 Q225 Q222 Q347 Q17 Q902 Q114 Q212 Q213 Q218 Q79 Q858 Q948 Q1016 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q36
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?o ) WHERE { ?e property:P530 ?h . ?e rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Q36 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?o > ?s ) }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Lebanon Cuba Luxembourg Belgium United States of America Philippines Central African Republic Switzerland Italy Georgia Ireland Pakistan Belarus Bosnia and Herzegovina Albania Liechtenstein Japan Bangladesh Kenya Ukraine Czech Republic Romania Egypt Syria Tunisia Libya Cape Verde Zambia
50
action count
action greater
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 Poland
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 ( ?e ) AS ?z ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?h ) AS ?o ) WHERE { ?e property:diplomatic_relation ?h . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { resource:Poland property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o > ?s ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q16
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with more number of administrative territories than Canada ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?h ) WHERE { ?q property:P530 ?j . ?q rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Q16 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?h > ?n ) }
Canada
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?h ) WHERE { ?q property:diplomatic_relation ?j . ?q rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?h > ?n ) }
[]
political territorial entity designation for an administrative territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q16
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with more number of administrative territories than Canada
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?h ) WHERE { ?q property:P530 ?j . ?q rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q15617994 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Q16 property:P530 ?w . ?w rdf:type ontology:Q1048835 } } . FILTER ( ?h > ?n ) }
Germany Australia
Germany and Australia have diplomatic relationships with more number of administrative territories than Canada
Germany Australia
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Canada
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?j ) AS ?h ) WHERE { ?q property:diplomatic_relation ?j . ?q rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) WHERE { resource:Canada property:diplomatic_relation ?w . ?w rdf:type ontology:political_territorial_entity } } . FILTER ( ?h > ?n ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1772562 Q38
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Italy or are Slidrefjord present in ?
OR((Q38,P530,c(Q15617994)), (Q1772562,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q1772562
relation P17
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q1772562', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q38 property:P530 ?x } UNION { resource:Q1772562 property:P17 ?x } } }
Slidrefjord Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Slidrefjord
relation country
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Slidrefjord', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Italy property:diplomatic_relation ?x } UNION { resource:Slidrefjord property:country ?x } } }
[]
designation for an administrative territorial entity
Q229 Q884 Q79 Q43 Q238 Q228 Q423 Q142 Q347 Q889
SYSTEM
Some of them are Cyprus, South Korea, Egypt, Turkey, San Marino, Andorra, North Korea, France, Liechtenstein, Afghanistan
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q1772562,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q1772562
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Italy or are Slidrefjord present in
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q1772562', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . { { resource:Q38 property:P530 ?x } UNION { resource:Q1772562 property:P17 ?x } } }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Cyprus, South Korea, Egypt, Turkey, San Marino, Andorra, North Korea, France, Liechtenstein and Afghanistan hold diplomatic relationship with Italy or are Slidrefjord present in
Cyprus South Korea Egypt Turkey San Marino Andorra North Korea France Liechtenstein Afghanistan
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Slidrefjord
relation country
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Slidrefjord', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Italy property:diplomatic_relation ?x } UNION { resource:Slidrefjord property:country ?x } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q408 Q699964
P710
Q930933
USER
How many relationships were Australia or Archduchy of Austria a participant of ?
(c(Q930933),P710,Q408) (c(Q930933),P710,Q699964)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P710
type Q930933
action filter_type
action find_reverse
entity Q699964
relation P710
type Q930933
[{'concept': 'Q930933'}, 'P710', 'Q408'] [{'concept': 'Q930933'}, 'P710', 'Q699964']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?t ) { ( resource:Q408 ) ( resource:Q699964 ) } . ?b property:P710 ?t }
Australia Archduchy of Austria
action count
action union
action filter_type
action find_reverse
entity Australia
relation participant
type relationship
action filter_type
action find_reverse
entity Archduchy of Austria
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Australia'] [{'concept': 'relationship'}, 'participant', 'Archduchy of Austria']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?t ) { ( resource:Australia ) ( resource:Archduchy_of_Austria ) } . ?b property:participant ?t }
[]
relationship
SYSTEM
3
Q4398158 Q4825336 Q4825269
(c(Q930933),P710,Q408) (c(Q930933),P710,Q699964)
action count
action union
action filter_type
action find_reverse
entity Q408
relation P710
type Q930933
action filter_type
action find_reverse
entity Q699964
relation P710
type Q930933
[ANSWER]
[{'concept': 'Q930933'}, 'P710', 'Q408'] [{'concept': 'Q930933'}, 'P710', 'Q699964']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?t ) { ( resource:Q408 ) ( resource:Q699964 ) } . ?b property:P710 ?t }
Australia–Russia relations Australia–United States relations Australia–Brazil relations
3
action count
action union
action filter_type
action find_reverse
entity Australia
relation participant
type relationship
action filter_type
action find_reverse
entity Archduchy of Austria
relation participant
type relationship
[{'concept': 'relationship'}, 'participant', 'Australia'] [{'concept': 'relationship'}, 'participant', 'Archduchy of Austria']
SELECT DISTINCT ( COUNT ( ?b ) AS ?y ) WHERE { VALUES ( ?t ) { ( resource:Australia ) ( resource:Archduchy_of_Austria ) } . ?b property:participant ?t }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q142
P1313
Q12737077
USER
Which occupation serves as the political office that is fulfilled by the head of the government of France ?
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q142 property:P1313 ?i . ?i rdf:type ontology:Q12737077 }
France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:France property:office_held_by_head_of_government ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q1587677
SYSTEM
Prime Minister of France
Q1587677
(Q142,P1313,c(Q12737077))
action filter_type
action find
entity Q142
relation P1313
type Q12737077
The [ANSWER] serves as the political office that is fulfilled by the head of the government of France
['Q142', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q142 property:P1313 ?i . ?i rdf:type ontology:Q12737077 }
Prime Minister of France
The Prime Minister of France serves as the political office that is fulfilled by the head of the government of France
Prime Minister of France
action filter_type
action find
entity France
relation office held by head of government
type occupation
['France', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:France property:office_held_by_head_of_government ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P6
Q502895
USER
What people are that administrative territory the head of goverment of ?
(Q1587677,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
['Q1587677', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q142 property:P6 ?x }
France
action filter_type
action find
entity France
relation head of government
type common name
['Prime Minister of France', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:France property:head_of_government ?x }
[]
common name
Q10287 Q7711
SYSTEM
Manuel Valls, Jean-Marc Ayrault
Q10287 Q7711
(Q1587677,P6,c(Q502895))
action filter_type
action find
entity Q142
relation P6
type Q502895
[ANSWERS] are that administrative territory the head of goverment of
['Q1587677', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q142 property:P6 ?x }
Manuel Valls Jean-Marc Ayrault
Manuel Valls and Jean-Marc Ayrault are that administrative territory the head of goverment of
Manuel Valls Jean-Marc Ayrault
action filter_type
action find
entity France
relation head of government
type common name
['Prime Minister of France', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:France property:head_of_government ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q142
P36
Q56061
USER
What is the capital of that administrative territory ?
(Q10287,P36,c(Q56061)) (Q7711,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
['Q10287', 'P36', {'concept': 'Q56061'}] ['Q7711', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q142 property:P36 ?e }
France
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['Manuel Valls', 'capital', {'concept': 'administrative territorial entity'}] ['Jean-Marc Ayrault', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:France property:capital ?e }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q10287,P36,c(Q56061)) (Q7711,P36,c(Q56061))
action filter_type
action find
entity Q142
relation P36
type Q56061
The capital of that administrative territory is [ANSWER]
['Q10287', 'P36', {'concept': 'Q56061'}] ['Q7711', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q56061 . resource:Q142 property:P36 ?e }
Paris
The capital of that administrative territory is Paris
Paris
action filter_type
action find
entity France
relation capital
type administrative territorial entity
['Manuel Valls', 'capital', {'concept': 'administrative territorial entity'}] ['Jean-Marc Ayrault', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:administrative_territorial_entity . resource:France property:capital ?e }
[]