Simple Question (Direct)
Simple Question
Q5700319
P19
Q515
USER
Which city was Antonio de Undurraga born in ?
(Q5700319,P19,c(Q515))
action filter_type
action find
entity Q5700319
relation P19
type Q515
['Q5700319', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { resource:Q5700319 property:P19 ?s . ?s rdf:type ontology:Q515 }
Antonio de Undurraga
action filter_type
action find
entity Antonio de Undurraga
relation place of birth
type city
['Antonio de Undurraga', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { resource:Antonio_de_Undurraga property:place_of_birth ?s . ?s rdf:type ontology:city }
[]
city
Q2887
SYSTEM
Santiago
Q2887
(Q5700319,P19,c(Q515))
action filter_type
action find
entity Q5700319
relation P19
type Q515
Antonio de Undurraga was born en [ANSWER]
['Q5700319', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?s WHERE { resource:Q5700319 property:P19 ?s . ?s rdf:type ontology:Q515 }
Santiago
Antonio de Undurraga was born en Santiago
Santiago
action filter_type
action find
entity Antonio de Undurraga
relation place of birth
type city
['Antonio de Undurraga', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?s WHERE { resource:Antonio_de_Undurraga property:place_of_birth ?s . ?s rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2887
P190
Q515
USER
Which cities are sister town of that one ?
(c(Q515),P190,Q2887)
action filter_type
action find_reverse
entity Q2887
relation P190
type Q515
[{'concept': 'Q515'}, 'P190', 'Q2887']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q515 . ?x property:P190 resource:Q2887 }
Santiago
action filter_type
action find_reverse
entity Santiago
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Santiago']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:city . ?x property:sister_city resource:Santiago }
[]
city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q8652 Q3572 Q1461 Q1899 Q1486 Q1773
(c(Q515),P190,Q2887)
action filter_type
action find_reverse
entity Q2887
relation P190
type Q515
[ANSWERS] are sister town of that one
[{'concept': 'Q515'}, 'P190', 'Q2887']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q515 . ?x property:P190 resource:Q2887 }
Miami Tunis Manila Kyiv Buenos Aires Riga
Buenos Aires, Riga and Kyiv are sister town of that one
Buenos Aires Riga Kyiv
action filter_type
action find_reverse
entity Santiago
relation sister city
type city
[{'concept': 'city'}, 'sister city', 'Santiago']
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:city . ?x property:sister_city resource:Santiago }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P190
Q515 Q56061 Q20667921
USER
How many cities are twin cities of exactly 5 administrative territories or french administrative divisions ?
(c(Q56061)|c(Q20667921),P190,c(Q515))
action count
action equal
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
action find_reverse_tuple_counts
relation P190
type Q515
type Q20667921
value 5
[[{'concept': 'Q56061'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?l WHERE { VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?e rdf:type ?j } GROUP BY ?l } . FILTER ( ?x = 5 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type type of french administrative division
value 5
[[{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?l WHERE { VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?j } GROUP BY ?l } . FILTER ( ?x = 5 ) }
[]
city administrative territorial entity type of french administrative division
SYSTEM
35
Q60037 Q42651 Q2910 Q26600 Q178878 Q2966 Q34217 Q842984 Q193721 Q2900 Q3861 Q178382 Q3185 Q116417 Q2773 Q2978 Q7070 Q182852 Q16506 Q245126 Q3126 Q2749 Q523469 Q2119 Q57906 Q189823 Q203344 Q20921 Q168648 Q3751 Q18575 Q117676 Q4060 Q3852 Q16666
(c(Q56061)|c(Q20667921),P190,c(Q515))
action count
action equal
action union
action find_reverse_tuple_counts
relation P190
type Q515
type Q56061
action find_reverse_tuple_counts
relation P190
type Q515
type Q20667921
value 5
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q20667921'}], 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?l WHERE { VALUES ( ?j ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?e rdf:type ?j } GROUP BY ?l } . FILTER ( ?x = 5 ) }
Zalaegerszeg Wuxi Ludwigshafen Fukuoka Békéscsaba Heidelberg Oxford Harkány Tábor Quito Doha Jūrmala Hildesheim Sátoraljaújhely Braunschweig Regensburg Eisenach Kunming České Budějovice Siófok Erlangen Augsburg Mariánské Lázně Mannheim Yangzhou Haikou Baja Daejeon Sopron Praia Tucson Viseu Hürth Worms Nanjing
35
action count
action equal
action union
action find_reverse_tuple_counts
relation sister city
type city
type administrative territorial entity
action find_reverse_tuple_counts
relation sister city
type city
type type of french administrative division
value 5
[[{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}], 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) ?l WHERE { VALUES ( ?j ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?j } GROUP BY ?l } . FILTER ( ?x = 5 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1486
P17
Q15617994
USER
Which administrative territory is Buenos Aires present in ?
(Q1486,P17,c(Q15617994))
action filter_type
action find
entity Q1486
relation P17
type Q15617994
['Q1486', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1486 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Buenos Aires
action filter_type
action find
entity Buenos Aires
relation country
type designation for an administrative territorial entity
['Buenos Aires', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Buenos_Aires property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q414
SYSTEM
Argentina
Q414
(Q1486,P17,c(Q15617994))
action filter_type
action find
entity Q1486
relation P17
type Q15617994
Buenos Aires is [ANSWER]
['Q1486', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { resource:Q1486 property:P17 ?n . ?n rdf:type ontology:Q15617994 }
Argentina
Buenos Aires is Argentina
Argentina
action filter_type
action find
entity Buenos Aires
relation country
type designation for an administrative territorial entity
['Buenos Aires', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Buenos_Aires property:country ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q26694260
Q15617994
USER
And also tell me about mayor of Tormantos?
(Q26694260,P17,c(Q15617994))
action filter_type
action find
entity Q26694260
relation P17
type Q15617994
['Q26694260', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q26694260 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
mayor of Tormantos
action filter_type
action find
entity mayor of Tormantos
relation country
type designation for an administrative territorial entity
['mayor of Tormantos', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:mayor_of_Tormantos property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29
SYSTEM
Spain
Q29
(Q26694260,P17,c(Q15617994))
action filter_type
action find
entity Q26694260
relation P17
type Q15617994
[ANSWER]
['Q26694260', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q26694260 property:P17 ?b . ?b rdf:type ontology:Q15617994 }
Spain
Spain
action filter_type
action find
entity mayor of Tormantos
relation country
type designation for an administrative territorial entity
['mayor of Tormantos', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:mayor_of_Tormantos property:country ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q26694260
P1001
Q1048835
USER
How many political territories come under the jurisdiction of mayor of Tormantos ?
(Q26694260,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q26694260
relation P1001
type Q1048835
['Q26694260', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q26694260 property:P1001 ?p . ?p rdf:type ontology:Q1048835 }
mayor of Tormantos
action count
action filter_type
action find
entity mayor of Tormantos
relation applies to jurisdiction
type political territorial entity
['mayor of Tormantos', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:mayor_of_Tormantos property:applies_to_jurisdiction ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
1
Q1645994
(Q26694260,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q26694260
relation P1001
type Q1048835
[ANSWER]
['Q26694260', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:Q26694260 property:P1001 ?p . ?p rdf:type ontology:Q1048835 }
Tormantos
1
action count
action filter_type
action find
entity mayor of Tormantos
relation applies to jurisdiction
type political territorial entity
['mayor of Tormantos', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?s ) WHERE { resource:mayor_of_Tormantos property:applies_to_jurisdiction ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q26698134
Q1048835
USER
And how about mayor of El Montmell?
(Q26698134,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q26698134
relation P1001
type Q1048835
['Q26698134', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ontology:Q1048835 . resource:Q26698134 property:P1001 ?j }
mayor of El Montmell
action count
action filter_type
action find
entity mayor of El Montmell
relation applies to jurisdiction
type political territorial entity
['mayor of El Montmell', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ontology:political_territorial_entity . resource:mayor_of_El_Montmell property:applies_to_jurisdiction ?j }
[]
political territorial entity
SYSTEM
1
(Q26698134,P1001,c(Q1048835))
action count
action filter_type
action find
entity Q26698134
relation P1001
type Q1048835
[ANSWER]
['Q26698134', 'P1001', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ontology:Q1048835 . resource:Q26698134 property:P1001 ?j }
1
action count
action filter_type
action find
entity mayor of El Montmell
relation applies to jurisdiction
type political territorial entity
['mayor of El Montmell', 'applies to jurisdiction', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) WHERE { ?j rdf:type ontology:political_territorial_entity . resource:mayor_of_El_Montmell property:applies_to_jurisdiction ?j }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P159
Q515 Q874405 Q334453
USER
How many cities are the head offices of around 6 social groups and divisions ?
(c(Q874405)|c(Q334453),P159,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
value 6
[[{'concept': 'Q874405'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { FILTER ( ?f = 6 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:Q874405 ) ( ontology:Q334453 ) } . ?e rdf:type ?s } GROUP BY ?u } }
action count
action approx
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
action find_reverse_tuple_counts
relation headquarters location
type city
type division
value 6
[[{'concept': 'social group'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { FILTER ( ?f = 6 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:social_group ) ( ontology:division ) } . ?e rdf:type ?s } GROUP BY ?u } }
[]
city social group division
SYSTEM
11
Q3870 Q2887 Q1899 Q14960 Q1362 Q19660 Q8652 Q34217 Q11194 Q1865 Q3616
(c(Q874405)|c(Q334453),P159,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q874405
action find_reverse_tuple_counts
relation P159
type Q515
type Q334453
value 6
[ANSWER]
[[{'concept': 'Q874405'}, {'concept': 'Q334453'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { FILTER ( ?f = 6 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:Q874405 ) ( ontology:Q334453 ) } . ?e rdf:type ?s } GROUP BY ?u } }
Nairobi Santiago Kyiv Brno Islamabad Bucharest Miami Oxford Sarajevo Kuala Lumpur Tehran
11
action count
action approx
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type social group
action find_reverse_tuple_counts
relation headquarters location
type city
type division
value 6
[[{'concept': 'social group'}, {'concept': 'division'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?o ) WHERE { FILTER ( ?f = 6 ) . { SELECT DISTINCT ?u ( COUNT ( ?e ) AS ?f ) WHERE { VALUES ( ?s ) { ( ontology:social_group ) ( ontology:division ) } . ?e rdf:type ?s } GROUP BY ?u } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q511426 Q2887
P190
Q56061
USER
Which administrative territories are partner towns of Santiago or Vänersborg Municipality ?
OR((Q2887,P190,c(Q56061)), (Q511426,P190,c(Q56061)))
action filter_type
action union
action find
entity Q2887
relation P190
action find
entity Q511426
relation P190
type Q56061
{'OR': [['Q2887', 'P190', {'concept': 'Q56061'}], ['Q511426', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2887 property:P190 ?b } UNION { resource:Q511426 property:P190 ?b } } . ?b rdf:type ontology:Q56061 }
Vänersborg Municipality Santiago
action filter_type
action union
action find
entity Santiago
relation sister city
action find
entity Vänersborg Municipality
relation sister city
type administrative territorial entity
{'OR': [['Santiago', 'sister city', {'concept': 'administrative territorial entity'}], ['Vänersborg Municipality', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Santiago property:sister_city ?b } UNION { resource:Vänersborg_Municipality property:sister_city ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1896161 Q3070 Q174 Q241767 Q1483558 Q1524 Q43509 Q3640 Q956 Q1992633
SYSTEM
Some of them are Omaruru, San José, São Paulo, Plasencia, Räpina, Athens, Guayaquil, Ankara, Beijing, Arsuk
Q3070 Q1524 Q685509 Q691775 Q2807 Q34820 Q1896161 Q43509 Q1887662 Q956 Q241767 Q1489 Q3640 Q1491 Q1483558 Q1992633 Q174
OR((Q2887,P190,c(Q56061)), (Q511426,P190,c(Q56061)))
action filter_type
action union
action find
entity Q2887
relation P190
action find
entity Q511426
relation P190
type Q56061
[ANSWERS] are partner towns of Santiago or Vänersborg Municipality
{'OR': [['Q2887', 'P190', {'concept': 'Q56061'}], ['Q511426', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q2887 property:P190 ?b } UNION { resource:Q511426 property:P190 ?b } } . ?b rdf:type ontology:Q56061 }
San José Athens Santiago de Veraguas Eiði Madrid Santo Domingo Omaruru Guayaquil Siglufjörður Beijing Plasencia Mexico City Ankara La Paz Räpina Arsuk São Paulo
Omaruru, San José, São Paulo, Plasencia, Räpina, Athens, Guayaquil, Ankara, Beijing and Arsuk are partner towns of Santiago or Vänersborg Municipality
Omaruru San José São Paulo Plasencia Räpina Athens Guayaquil Ankara Beijing Arsuk
action filter_type
action union
action find
entity Santiago
relation sister city
action find
entity Vänersborg Municipality
relation sister city
type administrative territorial entity
{'OR': [['Santiago', 'sister city', {'concept': 'administrative territorial entity'}], ['Vänersborg Municipality', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Santiago property:sister_city ?b } UNION { resource:Vänersborg_Municipality property:sister_city ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027427
P532
Q56061 Q2235308
USER
Which ship types are the registry port of greater number of administrative territories than Cygnet ?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027427
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?k rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q56061 . ?k property:P532 ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q24027427 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?c > ?r ) }
Cygnet
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Cygnet
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?k rdf:type ontology:ship_type . ?z rdf:type ontology:administrative_territorial_entity . ?k property:port_of_registry ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Cygnet property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?c > ?r ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027427
relation P532
type Q2235308
[ANSWERS] are the registry port of greater number of administrative territories than Cygnet
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?k rdf:type ontology:Q2235308 . ?z rdf:type ontology:Q56061 . ?k property:P532 ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Q24027427 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?c > ?r ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura, SS Maxim Gorkiy and RMS Aquitania are the registry port of greater number of administrative territories than Cygnet
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Cygnet
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?c ) WHERE { ?k rdf:type ontology:ship_type . ?z rdf:type ontology:administrative_territorial_entity . ?k property:port_of_registry ?z } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { resource:Cygnet property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?c > ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027382
P532
Q56061 Q2235308
USER
And what about Rebecca?
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027382
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?f ) WHERE { ?t rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 . ?t property:P532 ?m } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q24027382 property:P532 ?u . ?u rdf:type ontology:Q2235308 } } . FILTER ( ?f > ?a ) }
Rebecca
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Rebecca
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?f ) WHERE { ?t rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity . ?t property:port_of_registry ?m } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Rebecca property:port_of_registry ?u . ?u rdf:type ontology:ship_type } } . FILTER ( ?f > ?a ) }
[]
administrative territorial entity ship type
Q2596850 Q468026 Q35462
SYSTEM
MS Azura, SS Maxim Gorkiy, RMS Aquitania
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027382
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?f ) WHERE { ?t rdf:type ontology:Q2235308 . ?m rdf:type ontology:Q56061 . ?t property:P532 ?m } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Q24027382 property:P532 ?u . ?u rdf:type ontology:Q2235308 } } . FILTER ( ?f > ?a ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
MS Azura SS Maxim Gorkiy RMS Aquitania
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Rebecca
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?m ) AS ?f ) WHERE { ?t rdf:type ontology:ship_type . ?m rdf:type ontology:administrative_territorial_entity . ?t property:port_of_registry ?m } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { resource:Rebecca property:port_of_registry ?u . ?u rdf:type ontology:ship_type } } . FILTER ( ?f > ?a ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q414
P1001
Q375928 Q1292279
USER
How many lower houses or political borders have jurisdiction over Argentina ?
(c(Q375928),P1001,Q414) (c(Q1292279),P1001,Q414)
action count
action union
action filter_type
action find_reverse
entity Q414
relation P1001
type Q375928
action filter_type
action find_reverse
entity Q414
relation P1001
type Q1292279
[{'concept': 'Q375928'}, 'P1001', 'Q414'] [{'concept': 'Q1292279'}, 'P1001', 'Q414']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:P1001 resource:Q414 . ?l rdf:type ontology:Q375928 } UNION { ?l property:P1001 resource:Q414 . ?l rdf:type ontology:Q1292279 } }
Argentina
action count
action union
action filter_type
action find_reverse
entity Argentina
relation applies to jurisdiction
type lower house
action filter_type
action find_reverse
entity Argentina
relation applies to jurisdiction
type political border
[{'concept': 'lower house'}, 'applies to jurisdiction', 'Argentina'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Argentina']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:applies_to_jurisdiction resource:Argentina . ?l rdf:type ontology:lower_house } UNION { ?l property:applies_to_jurisdiction resource:Argentina . ?l rdf:type ontology:political_border } }
[]
lower house political border
SYSTEM
7
Q1994949 Q17351706 Q1993076 Q1993481 Q629133 Q3088728 Q1993469
(c(Q375928),P1001,Q414) (c(Q1292279),P1001,Q414)
action count
action union
action filter_type
action find_reverse
entity Q414
relation P1001
type Q375928
action filter_type
action find_reverse
entity Q414
relation P1001
type Q1292279
[ANSWER]
[{'concept': 'Q375928'}, 'P1001', 'Q414'] [{'concept': 'Q1292279'}, 'P1001', 'Q414']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:P1001 resource:Q414 . ?l rdf:type ontology:Q375928 } UNION { ?l property:P1001 resource:Q414 . ?l rdf:type ontology:Q1292279 } }
Argentina–Uruguay border Argentina–United Kingdom border Argentina–Chile border Argentina–Paraguay border Chamber of Deputies Argentina–Bolivia border Argentina–Brazil border
7
action count
action union
action filter_type
action find_reverse
entity Argentina
relation applies to jurisdiction
type lower house
action filter_type
action find_reverse
entity Argentina
relation applies to jurisdiction
type political border
[{'concept': 'lower house'}, 'applies to jurisdiction', 'Argentina'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Argentina']
SELECT DISTINCT ( COUNT ( ?l ) AS ?m ) WHERE { { ?l property:applies_to_jurisdiction resource:Argentina . ?l rdf:type ontology:lower_house } UNION { ?l property:applies_to_jurisdiction resource:Argentina . ?l rdf:type ontology:political_border } }
[]