Simple Question (Direct)
Simple Question
Q19547970
P27
Q15617994
USER
Which administrative territory is the native country of Dorothy Rice Sims ?
(Q19547970,P27,c(Q15617994))
action filter_type
action find
entity Q19547970
relation P27
type Q15617994
['Q19547970', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q19547970 property:P27 ?s }
Dorothy Rice Sims
action filter_type
action find
entity Dorothy Rice Sims
relation country of citizenship
type designation for an administrative territorial entity
['Dorothy Rice Sims', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dorothy_Rice_Sims property:country_of_citizenship ?s }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q19547970,P27,c(Q15617994))
action filter_type
action find
entity Q19547970
relation P27
type Q15617994
The [ANSWER] is the native country of Dorothy Rice Sims
['Q19547970', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . resource:Q19547970 property:P27 ?s }
United States of America
The United States of America is the native country of Dorothy Rice Sims
United States of America
action filter_type
action find
entity Dorothy Rice Sims
relation country of citizenship
type designation for an administrative territorial entity
['Dorothy Rice Sims', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Dorothy_Rice_Sims property:country_of_citizenship ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P183
Q16521
USER
Which taxon is endemic to that administrative territory ?
(c(Q16521),P183,Q30)
action filter_type
action find_reverse
entity Q30
relation P183
type Q16521
[{'concept': 'Q16521'}, 'P183', 'Q30']
SELECT DISTINCT ?m WHERE { ?m property:P183 resource:Q30 . ?m rdf:type ontology:Q16521 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'United States of America']
SELECT DISTINCT ?m WHERE { ?m property:endemic_to resource:United_States_of_America . ?m rdf:type ontology:taxon }
[]
taxon
Q2205148
SYSTEM
Northern dwarf siren
Q2205148
(c(Q16521),P183,Q30)
action filter_type
action find_reverse
entity Q30
relation P183
type Q16521
[ANSWER] is endemic to that administrative territory
[{'concept': 'Q16521'}, 'P183', 'Q30']
SELECT DISTINCT ?m WHERE { ?m property:P183 resource:Q30 . ?m rdf:type ontology:Q16521 }
Northern dwarf siren
Northern dwarf siren is endemic to that administrative territory
Northern dwarf siren
action filter_type
action find_reverse
entity United States of America
relation endemic to
type taxon
[{'concept': 'taxon'}, 'endemic to', 'United States of America']
SELECT DISTINCT ?m WHERE { ?m property:endemic_to resource:United_States_of_America . ?m rdf:type ontology:taxon }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P163
Q14660
USER
What is the name of flag associated with United States of America ?
(Q30,P163,c(Q14660))
action filter_type
action find
entity Q30
relation P163
type Q14660
['Q30', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P163 ?o . ?o rdf:type ontology:Q14660 }
United States of America
action filter_type
action find
entity United States of America
relation flag
type flag
['United States of America', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:flag ?o . ?o rdf:type ontology:flag }
[]
flag
Q42537
SYSTEM
flag of the United States of America
Q42537
(Q30,P163,c(Q14660))
action filter_type
action find
entity Q30
relation P163
type Q14660
The name of flag associated with United States of America is the [ANSWER]
['Q30', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?o WHERE { resource:Q30 property:P163 ?o . ?o rdf:type ontology:Q14660 }
flag of the United States of America
The name of flag associated with United States of America is the flag of the United States of America
flag of the United States of America
action filter_type
action find
entity United States of America
relation flag
type flag
['United States of America', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?o WHERE { resource:United_States_of_America property:flag ?o . ?o rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P138
Q2235308
USER
Which ship types come from United States of America ?
(c(Q2235308),P138,Q30)
action filter_type
action find_reverse
entity Q30
relation P138
type Q2235308
[{'concept': 'Q2235308'}, 'P138', 'Q30']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2235308 . ?g property:P138 resource:Q30 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'United States of America']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:ship_type . ?g property:named_after resource:United_States_of_America }
[]
ship type
Q509266 Q7408497
SYSTEM
USS America, USS America
Q509266 Q7408497
(c(Q2235308),P138,Q30)
action filter_type
action find_reverse
entity Q30
relation P138
type Q2235308
The [ANSWERS] come from United States of America
[{'concept': 'Q2235308'}, 'P138', 'Q30']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q2235308 . ?g property:P138 resource:Q30 }
USS America USS America
The USS America and USS America come from United States of America
USS America USS America
action filter_type
action find_reverse
entity United States of America
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'United States of America']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:ship_type . ?g property:named_after resource:United_States_of_America }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q509266 Q7408497
P137
Q781132
USER
Which military branches are the facility operator of those ship types ?
(Q509266,P137,c(Q781132)) (Q7408497,P137,c(Q781132))
action filter_type
action find
entity prev_answer
relation P137
type Q781132
['Q509266', 'P137', {'concept': 'Q781132'}] ['Q7408497', 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q781132 . ?v property:P137 ?x . VALUES ( ?v ) { ( resource:Q509266 ) ( resource:Q7408497 ) } }
USS America USS America
action filter_type
action find
entity prev_answer
relation operator
type military branch
['USS America', 'operator', {'concept': 'military branch'}] ['USS America', 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:military_branch . ?v property:operator ?x . VALUES ( ?v ) { ( resource:USS_America ) ( resource:USS_America ) } }
[]
military branch
Q11220 Q11220
SYSTEM
United States Navy
Q11220 Q11220
(Q509266,P137,c(Q781132)) (Q7408497,P137,c(Q781132))
action filter_type
action find
entity prev_answer
relation P137
type Q781132
[ANSWER] and [ANSWER] are the facility operator of those ship types
['Q509266', 'P137', {'concept': 'Q781132'}] ['Q7408497', 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q781132 . ?v property:P137 ?x . VALUES ( ?v ) { ( resource:Q509266 ) ( resource:Q7408497 ) } }
United States Navy United States Navy
United States Navy and United States Navy are the facility operator of those ship types
United States Navy United States Navy
action filter_type
action find
entity prev_answer
relation operator
type military branch
['USS America', 'operator', {'concept': 'military branch'}] ['USS America', 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:military_branch . ?v property:operator ?x . VALUES ( ?v ) { ( resource:USS_America ) ( resource:USS_America ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11220
P178
Q6671777
USER
What was created by United States Navy ?
(c(Q6671777),P178,Q11220)
action filter_type
action find_reverse
entity Q11220
relation P178
type Q6671777
[{'concept': 'Q6671777'}, 'P178', 'Q11220']
SELECT DISTINCT ?i WHERE { ?i property:P178 resource:Q11220 . ?i rdf:type ontology:Q6671777 }
United States Navy
action filter_type
action find_reverse
entity United States Navy
relation developer
type structure
[{'concept': 'structure'}, 'developer', 'United States Navy']
SELECT DISTINCT ?i WHERE { ?i property:developer resource:United_States_Navy . ?i rdf:type ontology:structure }
[]
structure
Q6953574
SYSTEM
NESI
Q6953574
(c(Q6671777),P178,Q11220)
action filter_type
action find_reverse
entity Q11220
relation P178
type Q6671777
And [ANSWER] was created by United States Navy
[{'concept': 'Q6671777'}, 'P178', 'Q11220']
SELECT DISTINCT ?i WHERE { ?i property:P178 resource:Q11220 . ?i rdf:type ontology:Q6671777 }
NESI
And NESI was created by United States Navy
NESI
action filter_type
action find_reverse
entity United States Navy
relation developer
type structure
[{'concept': 'structure'}, 'developer', 'United States Navy']
SELECT DISTINCT ?i WHERE { ?i property:developer resource:United_States_Navy . ?i rdf:type ontology:structure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q11220
P159
Q56061
USER
Which administrative territory is the head office of United States Navy ?
(Q11220,P159,c(Q56061))
action filter_type
action find
entity Q11220
relation P159
type Q56061
['Q11220', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q11220 property:P159 ?b . ?b rdf:type ontology:Q56061 }
United States Navy
action filter_type
action find
entity United States Navy
relation headquarters location
type administrative territorial entity
['United States Navy', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:United_States_Navy property:headquarters_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q61
SYSTEM
Washington, D.C.
Q61
(Q11220,P159,c(Q56061))
action filter_type
action find
entity Q11220
relation P159
type Q56061
[ANSWER] is the head office of United States Navy
['Q11220', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q11220 property:P159 ?b . ?b rdf:type ontology:Q56061 }
Washington, D.C.
Washington, D.C. is the head office of United States Navy
Washington, D.C.
action filter_type
action find
entity United States Navy
relation headquarters location
type administrative territorial entity
['United States Navy', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:United_States_Navy property:headquarters_location ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61
P1408
Q4830453
USER
Which business enterprises have license to broadcast to that administrative territory ?
(c(Q4830453),P1408,Q61)
action filter_type
action find_reverse
entity Q61
relation P1408
type Q4830453
[{'concept': 'Q4830453'}, 'P1408', 'Q61']
SELECT DISTINCT ?s WHERE { ?s property:P1408 resource:Q61 . ?s rdf:type ontology:Q4830453 }
Washington, D.C.
action filter_type
action find_reverse
entity Washington, D.C.
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Washington, D.C.']
SELECT DISTINCT ?s WHERE { ?s property:licensed_to_broadcast_to resource:Washington,_D.C. . ?s rdf:type ontology:business_enterprise }
[]
business enterprise
Q7956141 Q7957165 Q7947199
SYSTEM
WTEM, WWDC, WBIG-FM
Q7957165 Q7947199 Q7957441 Q7950672 Q7955261 Q7952631 Q7956141 Q7946745 Q2403250
(c(Q4830453),P1408,Q61)
action filter_type
action find_reverse
entity Q61
relation P1408
type Q4830453
[ANSWERS] have license to broadcast to that administrative territory
[{'concept': 'Q4830453'}, 'P1408', 'Q61']
SELECT DISTINCT ?s WHERE { ?s property:P1408 resource:Q61 . ?s rdf:type ontology:Q4830453 }
WWDC WBIG-FM WWRC WIHT WRQX WMAL WTEM WASH WFED
WTEM, WWDC and WBIG-FM have license to broadcast to that administrative territory
WTEM WWDC WBIG-FM
action filter_type
action find_reverse
entity Washington, D.C.
relation licensed to broadcast to
type business enterprise
[{'concept': 'business enterprise'}, 'licensed to broadcast to', 'Washington, D.C.']
SELECT DISTINCT ?s WHERE { ?s property:licensed_to_broadcast_to resource:Washington,_D.C. . ?s rdf:type ontology:business_enterprise }
[]
Clarification
Simple Question|Single Entity|Indirect
Q7957165
P17
Q15617994
USER
Which administrative territory is that business enterprise a part of ?
(Q7957165,P17,c(Q15617994))
action filter_type
action find
entity Q7957165
relation P17
type Q15617994
['Q7957165', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q7957165 property:P17 ?i }
WWDC
action filter_type
action find
entity WWDC
relation country
type designation for an administrative territorial entity
['WWDC', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:WWDC property:country ?i }
[]
designation for an administrative territorial entity
Clarification for simple ques.
Q7957165
SYSTEM
Did you mean WWDC ?
Q7956141 Q7957165 Q7947199
(Q7956141,P17,c(Q15617994)) (Q7957165,P17,c(Q15617994)) (Q7947199,P17,c(Q15617994))
[ANSWER]
['Q7956141', 'P17', {'concept': 'Q15617994'}] ['Q7957165', 'P17', {'concept': 'Q15617994'}] ['Q7947199', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q7957165 property:P17 ?i }
WTEM WWDC WBIG-FM
Did you mean WWDC ?
WWDC
['WTEM', 'country', {'concept': 'designation for an administrative territorial entity'}] ['WWDC', 'country', {'concept': 'designation for an administrative territorial entity'}] ['WBIG-FM', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:WWDC property:country ?i }
[]
Simple Question (Coreferenced)
USER
Yes
(Q7957165,P17,c(Q15617994))
['Q7957165', 'P17', {'concept': 'Q15617994'}]
['WWDC', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
Q30
SYSTEM
United States of America
Q30
(Q7957165,P17,c(Q15617994))
action filter_type
action find
entity Q7957165
relation P17
type Q15617994
The [ANSWER] is that business enterprise a part of
['Q7957165', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q7957165 property:P17 ?i }
United States of America
The United States of America is that business enterprise a part of
United States of America
action filter_type
action find
entity WWDC
relation country
type designation for an administrative territorial entity
['WWDC', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:WWDC property:country ?i }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3502873
P137
Q4830453 Q55488 Q2235308
USER
How many business enterprises operates more number of railway stations or ship types than Telepace ?
(c(Q55488)|c(Q2235308),P137,c(Q4830453))
action count
action greater
action union
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q55488
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q3502873
relation P137
type Q55488
type Q2235308
[[{'concept': 'Q55488'}, {'concept': 'Q2235308'}], 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?f ) { ( ontology:Q55488 ) ( ontology:Q2235308 ) } . ?o rdf:type ?f } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:P137 resource:Q3502873 . { { ?y rdf:type ontology:Q55488 } UNION { ?y rdf:type ontology:Q2235308 } } } } . FILTER ( ?z > ?j ) }
Telepace
action count
action greater
action union
action find_reverse_tuple_counts
relation operator
type business enterprise
type railway station
action find_reverse_tuple_counts
relation operator
type business enterprise
type ship type
action count
action filter_multi_types
action find_reverse
entity Telepace
relation operator
type railway station
type ship type
[[{'concept': 'railway station'}, {'concept': 'ship type'}], 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?f ) { ( ontology:railway_station ) ( ontology:ship_type ) } . ?o rdf:type ?f } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:operator resource:Telepace . { { ?y rdf:type ontology:railway_station } UNION { ?y rdf:type ontology:ship_type } } } } . FILTER ( ?z > ?j ) }
[]
business enterprise railway station ship type
SYSTEM
24
Q2024025 Q3500373 Q468385 Q1997636 Q1024380 Q1770539 Q1946820 Q837860 Q2647999 Q656554 Q1061817 Q1354909 Q2136516 Q745700 Q465567 Q1544279 Q477312 Q20394 Q1276275 Q1479375 Q193701 Q1397107 Q3737187 Q66
(c(Q55488)|c(Q2235308),P137,c(Q4830453))
action count
action greater
action union
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q55488
action find_reverse_tuple_counts
relation P137
type Q4830453
type Q2235308
action count
action filter_multi_types
action find_reverse
entity Q3502873
relation P137
type Q55488
type Q2235308
[ANSWER]
[[{'concept': 'Q55488'}, {'concept': 'Q2235308'}], 'P137', {'concept': 'Q4830453'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?f ) { ( ontology:Q55488 ) ( ontology:Q2235308 ) } . ?o rdf:type ?f } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:P137 resource:Q3502873 . { { ?y rdf:type ontology:Q55488 } UNION { ?y rdf:type ontology:Q2235308 } } } } . FILTER ( ?z > ?j ) }
WestfalenBahn Washington State Ferries Blue Funnel Line Nordbahn Eisenbahngesellschaft Canada Steamship Lines Nortraship Moore-McCormack Reading Company Allan Line Royal Mail Steamers Carnival Cruise Lines Chandris Line Erixx Reederei Norden-Frisia Princess Cruises American Line Great Eastern Railway United States Lines Seoul Metro Euregio Verkehrsschienennetz MTR Corporation SpaceX Farrell Lines Dobroflot Boeing
24
action count
action greater
action union
action find_reverse_tuple_counts
relation operator
type business enterprise
type railway station
action find_reverse_tuple_counts
relation operator
type business enterprise
type ship type
action count
action filter_multi_types
action find_reverse
entity Telepace
relation operator
type railway station
type ship type
[[{'concept': 'railway station'}, {'concept': 'ship type'}], 'operator', {'concept': 'business enterprise'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?e ) WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?f ) { ( ontology:railway_station ) ( ontology:ship_type ) } . ?o rdf:type ?f } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?j ) WHERE { ?y property:operator resource:Telepace . { { ?y rdf:type ontology:railway_station } UNION { ?y rdf:type ontology:ship_type } } } } . FILTER ( ?z > ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with min number of administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?e ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?i ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?o ) WHERE { ?m property:P530 ?p . ?m rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?o = ?e ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?e ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?i ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?o ) WHERE { ?m property:diplomatic_relation ?p . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?o = ?e ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q29999 Q786 Q924
SYSTEM
Kingdom of the Netherlands, Dominican Republic, Tanzania
Q702 Q804 Q262 Q265 Q712 Q837 Q657 Q792 Q986 Q242 Q811 Q924 Q29999 Q854 Q819 Q424 Q730 Q232 Q921 Q1027 Q1020 Q1028 Q786 Q1036 Q1037 Q974 Q1032 Q1030 Q965 Q967 Q963 Q697 Q695 Q115 Q117 Q754 Q912 Q1007 Q1006 Q1005 Q1009 Q1008 Q971 Q683 Q686 Q836 Q774 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relations with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?e ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?i ) WHERE { ?b property:P530 ?x . ?b rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q15617994 } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?o ) WHERE { ?m property:P530 ?p . ?m rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q15617994 } GROUP BY ?m } . FILTER ( ?o = ?e ) }
Federated States of Micronesia Panama Algeria Uzbekistan Fiji Nepal Chad El Salvador Eritrea Belize Nicaragua Tanzania Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Kazakhstan Brunei Mauritius Malawi Morocco Dominican Republic Uganda Rwanda Democratic Republic of the Congo Niger Namibia Burkina Faso Burundi Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Mali Guinea-Bissau Guinea Gambia Cameroon Côte d'Ivoire Republic of the Congo Samoa Vanuatu Myanmar Guatemala Kuwait Madagascar Togo Tonga New Caledonia
Kingdom of the Netherlands, Dominican Republic and Tanzania have diplomatic relations with min number of administrative territories
Kingdom of the Netherlands Dominican Republic Tanzania
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?e ) { SELECT DISTINCT ?b ( COUNT ( ?x ) AS ?i ) WHERE { ?b property:diplomatic_relation ?x . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } } . { SELECT DISTINCT ?m ( COUNT ( ?p ) AS ?o ) WHERE { ?m property:diplomatic_relation ?p . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?m } . FILTER ( ?o = ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q236
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with greater number of administrative territories than Montenegro ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?j ) WHERE { ?y rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?y property:P530 ?w } GROUP BY ?y } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:Q236 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } }
Montenegro
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 Montenegro
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 ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?j ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?w } GROUP BY ?y } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:Montenegro property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q236
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with greater number of administrative territories than Montenegro
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?j ) WHERE { ?y rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?y property:P530 ?w } GROUP BY ?y } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:Q236 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
Italy, Brazil and United States of America have diplomatic relations with greater number of administrative territories than Montenegro
Italy Brazil United States of America
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 Montenegro
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 ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?w ) AS ?j ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y property:diplomatic_relation ?w } GROUP BY ?y } . FILTER ( ?j > ?k ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { resource:Montenegro property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q43
P530
Q15617994 Q15617994
USER
And also tell me about Turkey?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?u > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Q43 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } }
Turkey
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 Turkey
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 ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?u > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Turkey property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q145 Q148 Q403 Q159 Q155 Q30 Q38 Q17 Q1011
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q43
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?k } . FILTER ( ?u > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Q43 property:P530 ?l . ?l rdf:type ontology:Q15617994 } } }
Israel Yemen France United Kingdom People's Republic of China Serbia Russia Brazil United States of America Italy Japan Cape Verde
Italy Brazil United States of America
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 Turkey
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 ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?u ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } . FILTER ( ?u > ?n ) . { SELECT DISTINCT ( COUNT ( ?l ) AS ?n ) WHERE { resource:Turkey property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q23224 Q509266
P47 P138
Q15617994
USER
Which administrative territories are USS America named after or are adjacent to Aurano ?
OR((Q509266,P138,c(Q15617994)), (Q23224,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q509266
relation P138
action find
entity Q23224
relation P47
type Q15617994
{'OR': [['Q509266', 'P138', {'concept': 'Q15617994'}], ['Q23224', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q23224 property:P47 ?i } UNION { resource:Q509266 property:P138 ?i } } . ?i rdf:type ontology:Q15617994 }
Aurano USS America
action filter_type
action union
action find
entity USS America
relation named after
action find
entity Aurano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['USS America', 'named after', {'concept': 'designation for an administrative territorial entity'}], ['Aurano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Aurano property:shares_border_with ?i } UNION { resource:USS_America property:named_after ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q23643 Q23285 Q23659 Q23675 Q30 Q23331 Q23598 Q23704
SYSTEM
Miazzina, Cannero Riviera, Oggebbio, Premeno, United States of America, Falmenta, Intragna, Trarego Viggiona
Q23643 Q23285 Q23659 Q23675 Q30 Q23331 Q23598 Q23704
OR((Q509266,P138,c(Q15617994)), (Q23224,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q509266
relation P138
action find
entity Q23224
relation P47
type Q15617994
[ANSWERS] are USS America named after or are adjacent to Aurano
{'OR': [['Q509266', 'P138', {'concept': 'Q15617994'}], ['Q23224', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q23224 property:P47 ?i } UNION { resource:Q509266 property:P138 ?i } } . ?i rdf:type ontology:Q15617994 }
Miazzina Cannero Riviera Oggebbio Premeno United States of America Falmenta Intragna Trarego Viggiona
Miazzina, Cannero Riviera, Oggebbio, Premeno, United States of America, Falmenta, Intragna and Trarego Viggiona are USS America named after or are adjacent to Aurano
Miazzina Cannero Riviera Oggebbio Premeno United States of America Falmenta Intragna Trarego Viggiona
action filter_type
action union
action find
entity USS America
relation named after
action find
entity Aurano
relation shares border with
type designation for an administrative territorial entity
{'OR': [['USS America', 'named after', {'concept': 'designation for an administrative territorial entity'}], ['Aurano', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Aurano property:shares_border_with ?i } UNION { resource:USS_America property:named_after ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]