Simple Question (Direct)
Simple Question
Q2833949
P21
Q290
USER
Which sex does Alexandre Paul Emile Guiraudet have ?
(Q2833949,P21,c(Q290))
action filter_type
action find
entity Q2833949
relation P21
type Q290
['Q2833949', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q2833949 property:P21 ?g . ?g rdf:type ontology:Q290 }
Alexandre Paul Emile Guiraudet
action filter_type
action find
entity Alexandre Paul Emile Guiraudet
relation gender
type sex
['Alexandre Paul Emile Guiraudet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Alexandre_Paul_Emile_Guiraudet property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2833949,P21,c(Q290))
action filter_type
action find
entity Q2833949
relation P21
type Q290
Alexandre Paul Emile Guiraudet has a [ANSWER]
['Q2833949', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q2833949 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
Alexandre Paul Emile Guiraudet has a male
male
action filter_type
action find
entity Alexandre Paul Emile Guiraudet
relation gender
type sex
['Alexandre Paul Emile Guiraudet', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Alexandre_Paul_Emile_Guiraudet property:gender ?g . ?g rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q17044797 Q2833949
P27
Q15617994
USER
Which administrative territories are Alexandre Paul Emile Guiraudet or Josep Fradera i Soler an inhabitant of ?
OR((Q2833949,P27,c(Q15617994)), (Q17044797,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2833949
relation P27
action find
entity Q17044797
relation P27
type Q15617994
{'OR': [['Q2833949', 'P27', {'concept': 'Q15617994'}], ['Q17044797', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q2833949 property:P27 ?d } UNION { resource:Q17044797 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
Josep Fradera i Soler Alexandre Paul Emile Guiraudet
action filter_type
action union
action find
entity Alexandre Paul Emile Guiraudet
relation country of citizenship
action find
entity Josep Fradera i Soler
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alexandre Paul Emile Guiraudet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Josep Fradera i Soler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Alexandre_Paul_Emile_Guiraudet property:country_of_citizenship ?d } UNION { resource:Josep_Fradera_i_Soler property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q29
SYSTEM
France, Spain
Q142 Q29
OR((Q2833949,P27,c(Q15617994)), (Q17044797,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q2833949
relation P27
action find
entity Q17044797
relation P27
type Q15617994
[ANSWERS] are Alexandre Paul Emile Guiraudet or Josep Fradera i Soler an inhabitant of
{'OR': [['Q2833949', 'P27', {'concept': 'Q15617994'}], ['Q17044797', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q2833949 property:P27 ?d } UNION { resource:Q17044797 property:P27 ?d } } . ?d rdf:type ontology:Q15617994 }
France Spain
France and Spain are Alexandre Paul Emile Guiraudet or Josep Fradera i Soler an inhabitant of
France Spain
action filter_type
action union
action find
entity Alexandre Paul Emile Guiraudet
relation country of citizenship
action find
entity Josep Fradera i Soler
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alexandre Paul Emile Guiraudet', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Josep Fradera i Soler', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Alexandre_Paul_Emile_Guiraudet property:country_of_citizenship ?d } UNION { resource:Josep_Fradera_i_Soler property:country_of_citizenship ?d } } . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P530
Q15617994
USER
How many administrative territories holds diplomatic relationship with that administrative territory ?
(Q29,P530,c(Q15617994))
['Q29', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20266861 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Spain property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q29
SYSTEM
Did you mean Spain ?
(Q142,P530,c(Q15617994)) (Q29,P530,c(Q15617994))
[ANSWER]
['Q142', 'P530', {'concept': 'Q15617994'}] ['Q29', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20266861 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Spain ?
Spain
['France', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Spain property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q29,P530,c(Q15617994))
['Q29', 'P530', {'concept': 'Q15617994'}]
['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
2
Q155 Q38
(Q29,P530,c(Q15617994))
[ANSWER]
['Q29', 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q20266861 property:P530 ?z . ?z rdf:type ontology:Q15617994 }
Brazil Italy
2
['Spain', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Spain property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7408119 Q2833949
P19
Q56061
USER
Which administrative territories were Alexandre Paul Emile Guiraudet or Sam Saunders born in ?
OR((Q2833949,P19,c(Q56061)), (Q7408119,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2833949
relation P19
action find
entity Q7408119
relation P19
type Q56061
{'OR': [['Q2833949', 'P19', {'concept': 'Q56061'}], ['Q7408119', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { ?h property:P19 ?d . VALUES ( ?h ) { ( resource:Q2833949 ) ( resource:Q7408119 ) } } . ?d rdf:type ontology:Q56061 }
Sam Saunders Alexandre Paul Emile Guiraudet
action filter_type
action union
action find
entity Alexandre Paul Emile Guiraudet
relation place of birth
action find
entity Sam Saunders
relation place of birth
type administrative territorial entity
{'OR': [['Alexandre Paul Emile Guiraudet', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sam Saunders', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { ?h property:place_of_birth ?d . VALUES ( ?h ) { ( resource:Alexandre_Paul_Emile_Guiraudet ) ( resource:Sam_Saunders ) } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90 Q49233
SYSTEM
Paris, Orlando
Q90 Q49233
OR((Q2833949,P19,c(Q56061)), (Q7408119,P19,c(Q56061)))
action filter_type
action union
action find
entity Q2833949
relation P19
action find
entity Q7408119
relation P19
type Q56061
Alexandre Paul Emile Guiraudet or Sam Saunders were born in [ANSWERS]
{'OR': [['Q2833949', 'P19', {'concept': 'Q56061'}], ['Q7408119', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { ?h property:P19 ?d . VALUES ( ?h ) { ( resource:Q2833949 ) ( resource:Q7408119 ) } } . ?d rdf:type ontology:Q56061 }
Paris Orlando
Alexandre Paul Emile Guiraudet or Sam Saunders were born in Paris and Orlando
Paris Orlando
action filter_type
action union
action find
entity Alexandre Paul Emile Guiraudet
relation place of birth
action find
entity Sam Saunders
relation place of birth
type administrative territorial entity
{'OR': [['Alexandre Paul Emile Guiraudet', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sam Saunders', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { ?h property:place_of_birth ?d . VALUES ( ?h ) { ( resource:Alexandre_Paul_Emile_Guiraudet ) ( resource:Sam_Saunders ) } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P417
Q1445650 Q56061
USER
Which administrative territories have greater number of holidays as their patron saint than that administrative territory ?
(c(Q56061),P417,c(Q1445650))
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
holiday administrative territorial entity
Comparative|More/Less|Single entity type|Clarification
Q90
SYSTEM
Did you mean Paris ?
(c(Q56061),P417,c(Q1445650))
[ANSWER]
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Did you mean Paris ?
Paris
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q56061),P417,c(Q1445650))
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
[]
Q433066 Q428018 Q495798
SYSTEM
Moos in Passeier, Mölten, Brolo
Q491588 Q495798 Q428018 Q52215 Q433066
(c(Q56061),P417,c(Q1445650))
[ANSWERS] have greater number of holidays as their patron saint than that administrative territory
[{'concept': 'Q56061'}, 'P417', {'concept': 'Q1445650'}]
SELECT DISTINCT ?z WHERE { ?z property:Q28914 ?y . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q1445650 }
Camporeale Brolo Mölten Tuglie Moos in Passeier
Moos in Passeier, Mölten and Brolo have greater number of holidays as their patron saint than that administrative territory
Moos in Passeier Mölten Brolo
[{'concept': 'administrative territorial entity'}, 'patron saint', {'concept': 'holiday'}]
SELECT DISTINCT ?z WHERE { ?z property:patron_saint ?y . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:holiday }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P609
Q56061 Q83620 Q34442
USER
Which administrative territories are the destinations of around 10 thoroughfares and roads ?
(c(Q83620)|c(Q34442),P609,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
value 10
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?k = 10 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?v WHERE { { ?j property:P609 ?v . ?v rdf:type ontology:Q56061 . ?j rdf:type ontology:Q83620 } UNION { ?j property:P609 ?v . ?j rdf:type ontology:Q34442 . ?v rdf:type ontology:Q56061 } } GROUP BY ?v } }
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
value 10
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?k = 10 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?v WHERE { { ?j property:terminus_location ?v . ?v rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:thoroughfare } UNION { ?j property:terminus_location ?v . ?j rdf:type ontology:road . ?v rdf:type ontology:administrative_territorial_entity } } GROUP BY ?v } }
[]
administrative territorial entity thoroughfare road
Q956 Q727 Q1085
SYSTEM
Beijing, Amsterdam, Prague
Q956 Q727 Q1085
(c(Q83620)|c(Q34442),P609,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q34442
value 10
[ANSWERS] are the destinations of around 10 thoroughfares and roads
[[{'concept': 'Q83620'}, {'concept': 'Q34442'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?k = 10 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?v WHERE { { ?j property:P609 ?v . ?v rdf:type ontology:Q56061 . ?j rdf:type ontology:Q83620 } UNION { ?j property:P609 ?v . ?j rdf:type ontology:Q34442 . ?v rdf:type ontology:Q56061 } } GROUP BY ?v } }
Beijing Amsterdam Prague
Beijing, Amsterdam and Prague are the destinations of around 10 thoroughfares and roads
Beijing Amsterdam Prague
action approx
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type road
value 10
[[{'concept': 'thoroughfare'}, {'concept': 'road'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { FILTER ( ?k = 10 ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?k ) ?v WHERE { { ?j property:terminus_location ?v . ?v rdf:type ontology:administrative_territorial_entity . ?j rdf:type ontology:thoroughfare } UNION { ?j property:terminus_location ?v . ?j rdf:type ontology:road . ?v rdf:type ontology:administrative_territorial_entity } } GROUP BY ?v } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7539634
P190
Q56061
USER
Are Sledmere twin town of those ones ?
(Q7539634,P190,Q956) (Q7539634,P190,Q727) (Q7539634,P190,Q1085)
action is_in
entity prev_answer
action find
entity Q7539634
relation P190
['Q7539634', 'P190', 'Q956'] ['Q7539634', 'P190', 'Q727'] ['Q7539634', 'P190', 'Q1085']
ASK WHERE { VALUES ( ?o ) { ( resource:Q956 ) ( resource:Q727 ) ( resource:Q1085 ) } . resource:Q7539634 property:P190 ?o }
Sledmere
action is_in
entity prev_answer
action find
entity Sledmere
relation sister city
['Sledmere', 'sister city', 'Beijing'] ['Sledmere', 'sister city', 'Amsterdam'] ['Sledmere', 'sister city', 'Prague']
ASK WHERE { VALUES ( ?o ) { ( resource:Beijing ) ( resource:Amsterdam ) ( resource:Prague ) } . resource:Sledmere property:sister_city ?o }
[]
administrative territorial entity
SYSTEM
NO
(Q7539634,P190,Q956) (Q7539634,P190,Q727) (Q7539634,P190,Q1085)
action is_in
entity prev_answer
action find
entity Q7539634
relation P190
[ANSWER]
['Q7539634', 'P190', 'Q956'] ['Q7539634', 'P190', 'Q727'] ['Q7539634', 'P190', 'Q1085']
ASK WHERE { VALUES ( ?o ) { ( resource:Q956 ) ( resource:Q727 ) ( resource:Q1085 ) } . resource:Q7539634 property:P190 ?o }
No
action is_in
entity prev_answer
action find
entity Sledmere
relation sister city
['Sledmere', 'sister city', 'Beijing'] ['Sledmere', 'sister city', 'Amsterdam'] ['Sledmere', 'sister city', 'Prague']
ASK WHERE { VALUES ( ?o ) { ( resource:Beijing ) ( resource:Amsterdam ) ( resource:Prague ) } . resource:Sledmere property:sister_city ?o }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027088
P532
Q56061 Q2235308
USER
How many ship types have greater number of administrative territories as their registry harbour than John & Margaret ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027088
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q24027088 property:P532 ?l . ?l rdf:type ontology:Q2235308 } } . FILTER ( ?s > ?v ) . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?s ) WHERE { ?p rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 . ?p property:P532 ?h } GROUP BY ?p } }
John & Margaret
action count
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 John & Margaret
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:John_&_Margaret property:port_of_registry ?l . ?l rdf:type ontology:ship_type } } . FILTER ( ?s > ?v ) . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?s ) WHERE { ?p rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity . ?p property:port_of_registry ?h } GROUP BY ?p } }
[]
administrative territorial entity ship type
SYSTEM
70
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 count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027088
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:Q24027088 property:P532 ?l . ?l rdf:type ontology:Q2235308 } } . FILTER ( ?s > ?v ) . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?s ) WHERE { ?p rdf:type ontology:Q2235308 . ?h rdf:type ontology:Q56061 . ?p property:P532 ?h } GROUP BY ?p } }
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
70
action count
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 John & Margaret
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?m ) WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { resource:John_&_Margaret property:port_of_registry ?l . ?l rdf:type ontology:ship_type } } . FILTER ( ?s > ?v ) . { SELECT DISTINCT ?p ( COUNT ( ?h ) AS ?s ) WHERE { ?p rdf:type ontology:ship_type . ?h rdf:type ontology:administrative_territorial_entity . ?p property:port_of_registry ?h } GROUP BY ?p } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q90
P47
Q20667921
USER
How many french administrative divisions share the border with Paris ?
(Q90,P47,c(Q20667921))
action count
action filter_type
action find
entity Q90
relation P47
type Q20667921
['Q90', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p rdf:type ontology:Q20667921 . resource:Q90 property:P47 ?p }
Paris
action count
action filter_type
action find
entity Paris
relation shares border with
type type of french administrative division
['Paris', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Paris property:shares_border_with ?p }
[]
type of french administrative division
SYSTEM
29
Q135265 Q208889 Q18102 Q274327 Q253721 Q193899 Q234728 Q205632 Q234743 Q193819 Q193877 Q212274 Q175999 Q193929 Q640102 Q193370 Q201982 Q212793 Q256004 Q48958 Q208943 Q160506 Q166640 Q172455 Q189153 Q135104 Q209086 Q241021 Q609134
(Q90,P47,c(Q20667921))
action count
action filter_type
action find
entity Q90
relation P47
type Q20667921
[ANSWER]
['Q90', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p rdf:type ontology:Q20667921 . resource:Q90 property:P47 ?p }
Issy-les-Moulineaux Saint-Ouen Saint-Mandé Saint-Maurice Malakoff Fontenay-sous-Bois Vanves Aubervilliers Puteaux Vincennes Ivry-sur-Seine Nogent-sur-Marne Le Pré-Saint-Gervais Suresnes Gentilly Montreuil Clichy Charenton-le-Pont Les Lilas Neuilly-sur-Seine Bagnolet Saint-Denis Levallois-Perret Boulogne-Billancourt Saint-Cloud Le Kremlin-Bicêtre Pantin Montrouge Joinville-le-Pont
29
action count
action filter_type
action find
entity Paris
relation shares border with
type type of french administrative division
['Paris', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { ?p rdf:type ontology:type_of_french_administrative_division . resource:Paris property:shares_border_with ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q192548
P47
Q20667921
USER
And also tell me about Saint-Émilion?
(Q192548,P47,c(Q20667921))
action count
action filter_type
action find
entity Q192548
relation P47
type Q20667921
['Q192548', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:Q20667921 . resource:Q192548 property:P47 ?z }
Saint-Émilion
action count
action filter_type
action find
entity Saint-Émilion
relation shares border with
type type of french administrative division
['Saint-Émilion', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:type_of_french_administrative_division . resource:Saint-Émilion property:shares_border_with ?z }
[]
type of french administrative division
SYSTEM
9
Q747183 Q196671 Q843917 Q507630 Q1004101 Q199457 Q265291 Q1005035 Q6544
(Q192548,P47,c(Q20667921))
action count
action filter_type
action find
entity Q192548
relation P47
type Q20667921
[ANSWER]
['Q192548', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:Q20667921 . resource:Q192548 property:P47 ?z }
Moulon Saint-Christophe-des-Bardes Pomerol Néac Vignonet Montagne Saint-Laurent-des-Combes Saint-Sulpice-de-Faleyrens Libourne
9
action count
action filter_type
action find
entity Saint-Émilion
relation shares border with
type type of french administrative division
['Saint-Émilion', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { ?z rdf:type ontology:type_of_french_administrative_division . resource:Saint-Émilion property:shares_border_with ?z }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q324551
Q20667921
USER
And also tell me about Lescar?
(Q324551,P47,c(Q20667921))
action count
action filter_type
action find
entity Q324551
relation P47
type Q20667921
['Q324551', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q324551 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
Lescar
action count
action filter_type
action find
entity Lescar
relation shares border with
type type of french administrative division
['Lescar', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Lescar property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
SYSTEM
7
(Q324551,P47,c(Q20667921))
action count
action filter_type
action find
entity Q324551
relation P47
type Q20667921
[ANSWER]
['Q324551', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q324551 property:P47 ?p . ?p rdf:type ontology:Q20667921 }
7
action count
action filter_type
action find
entity Lescar
relation shares border with
type type of french administrative division
['Lescar', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Lescar property:shares_border_with ?p . ?p rdf:type ontology:type_of_french_administrative_division }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1085
P17
Q7275 Q3024240
USER
How many states or former countries are Prague located in ?
(Q1085,P17,c(Q7275)) (Q1085,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1085
relation P17
type Q7275
action filter_type
action find
entity Q1085
relation P17
type Q3024240
['Q1085', 'P17', {'concept': 'Q7275'}] ['Q1085', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Q1085 property:P17 ?h . ?h rdf:type ontology:Q7275 } UNION { resource:Q1085 property:P17 ?h . ?h rdf:type ontology:Q3024240 } }
Prague
action count
action union
action filter_type
action find
entity Prague
relation country
type state
action filter_type
action find
entity Prague
relation country
type former country
['Prague', 'country', {'concept': 'state'}] ['Prague', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Prague property:country ?h . ?h rdf:type ontology:state } UNION { resource:Prague property:country ?h . ?h rdf:type ontology:former_country } }
[]
state former country
SYSTEM
6
Q28513 Q42585 Q33946 Q152750 Q2162698 Q131964
(Q1085,P17,c(Q7275)) (Q1085,P17,c(Q3024240))
action count
action union
action filter_type
action find
entity Q1085
relation P17
type Q7275
action filter_type
action find
entity Q1085
relation P17
type Q3024240
[ANSWER]
['Q1085', 'P17', {'concept': 'Q7275'}] ['Q1085', 'P17', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Q1085 property:P17 ?h . ?h rdf:type ontology:Q7275 } UNION { resource:Q1085 property:P17 ?h . ?h rdf:type ontology:Q3024240 } }
Austria-Hungary Kingdom of Bohemia Czechoslovakia Protectorate of Bohemia and Moravia Duchy of Bohemia Austrian Empire
6
action count
action union
action filter_type
action find
entity Prague
relation country
type state
action filter_type
action find
entity Prague
relation country
type former country
['Prague', 'country', {'concept': 'state'}] ['Prague', 'country', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?o ) WHERE { { resource:Prague property:country ?h . ?h rdf:type ontology:state } UNION { resource:Prague property:country ?h . ?h rdf:type ontology:former_country } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1085
P6
Q502895
USER
Which people have that administrative territory as their heads of government ?
action filter_type
action find
entity Q1085
relation P6
type Q502895
SELECT DISTINCT ?v WHERE { resource:Q1085 property:P6 ?v . ?v rdf:type ontology:Q502895 }
Prague
action filter_type
action find
entity Prague
relation head of government
type common name
SELECT DISTINCT ?v WHERE { resource:Prague property:head_of_government ?v . ?v rdf:type ontology:common_name }
[]
common name
Q343248 Q10547432 Q11985895
SYSTEM
Karel Baxa, Tomáš Hudeček, Václav Vacek
Q7940786 Q10547432 Q12037238 Q12021474 Q11023716 Q11985895 Q12022993 Q12017714 Q18104657 Q10857536 Q10857763 Q4682983 Q12026110 Q15621392 Q3490563 Q12048031 Q11878707 Q10710292 Q12003229 Q10781275 Q11171177 Q890970 Q343248 Q630367 Q509047 Q12028220 Q12043184 Q712430 Q12023878 Q12024879
action filter_type
action find
entity Q1085
relation P6
type Q502895
[ANSWERS] have that administrative territory as their heads of government
SELECT DISTINCT ?v WHERE { resource:Q1085 property:P6 ?v . ?v rdf:type ontology:Q502895 }
Tomáš Černý Tomáš Hudeček Milan Kondr Igor Němec Ludvík Černý Václav Vacek Jan Podlipný František Štafa Adriana Krnáčová Zdeněk Horčík Zdeněk Zuska Vladimír Srb Josef Huleš Josef Hájek Petr Zenkl Přemysl Šámal Emilián Skramlík Adolf Svoboda Ferdinand Vališ Alois Říha Čeněk Gregor Bohuslav Svoboda Karel Baxa Jan Kasl Jan Koukal Karel Groš Otakar Klapka Pavel Bém Jaroslav Kořán Jindřich Šolc
Karel Baxa, Tomáš Hudeček and Václav Vacek have that administrative territory as their heads of government
Karel Baxa Tomáš Hudeček Václav Vacek
action filter_type
action find
entity Prague
relation head of government
type common name
SELECT DISTINCT ?v WHERE { resource:Prague property:head_of_government ?v . ?v rdf:type ontology:common_name }
[]