Simple Question (Direct)
Simple Question
Q2707195
P27
Q15617994
USER
Which administrative territory is Bratislav Ristić an inhabitant of ?
(Q2707195,P27,c(Q15617994))
action filter_type
action find
entity Q2707195
relation P27
type Q15617994
['Q2707195', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q2707195 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Bratislav Ristić
action filter_type
action find
entity Bratislav Ristić
relation country of citizenship
type designation for an administrative territorial entity
['Bratislav Ristić', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bratislav_Ristić property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403
SYSTEM
Serbia
Q403
(Q2707195,P27,c(Q15617994))
action filter_type
action find
entity Q2707195
relation P27
type Q15617994
[ANSWER] is Bratislav Ristić an inhabitant of
['Q2707195', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q2707195 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Serbia
Serbia is Bratislav Ristić an inhabitant of
Serbia
action filter_type
action find
entity Bratislav Ristić
relation country of citizenship
type designation for an administrative territorial entity
['Bratislav Ristić', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Bratislav_Ristić property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2707195
P19
Q56061
USER
Which administrative territory was Bratislav Ristić born at ?
(Q2707195,P19,c(Q56061))
action filter_type
action find
entity Q2707195
relation P19
type Q56061
['Q2707195', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q2707195 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Bratislav Ristić
action filter_type
action find
entity Bratislav Ristić
relation place of birth
type administrative territorial entity
['Bratislav Ristić', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Bratislav_Ristić property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q129259
SYSTEM
Niš
Q129259
(Q2707195,P19,c(Q56061))
action filter_type
action find
entity Q2707195
relation P19
type Q56061
Bratislav Ristić was born in [ANSWER]
['Q2707195', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?z WHERE { resource:Q2707195 property:P19 ?z . ?z rdf:type ontology:Q56061 }
Niš
Bratislav Ristić was born in Niš
Niš
action filter_type
action find
entity Bratislav Ristić
relation place of birth
type administrative territorial entity
['Bratislav Ristić', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { resource:Bratislav_Ristić property:place_of_birth ?z . ?z rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2707195
P734
Q82799
USER
Who has the surname Bratislav Ristić ?
(Q2707195,P734,c(Q82799))
action filter_type
action find
entity Q2707195
relation P734
type Q82799
['Q2707195', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . resource:Q2707195 property:P734 ?p }
Bratislav Ristić
action filter_type
action find
entity Bratislav Ristić
relation family name
type name
['Bratislav Ristić', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . resource:Bratislav_Ristić property:family_name ?p }
[]
name
Q21510814
SYSTEM
Ristić
Q21510814
(Q2707195,P734,c(Q82799))
action filter_type
action find
entity Q2707195
relation P734
type Q82799
[ANSWER] has the surname Bratislav [ANSWER]
['Q2707195', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q82799 . resource:Q2707195 property:P734 ?p }
Ristić
Ristić has the surname Bratislav Ristić
Ristić
action filter_type
action find
entity Bratislav Ristić
relation family name
type name
['Bratislav Ristić', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:name . resource:Bratislav_Ristić property:family_name ?p }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11542151
Q82799
USER
And how about Rika Higuchi?
(Q11542151,P734,c(Q82799))
action filter_type
action find
entity Q11542151
relation P734
type Q82799
['Q11542151', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q11542151 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Rika Higuchi
action filter_type
action find
entity Rika Higuchi
relation family name
type name
['Rika Higuchi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Rika_Higuchi property:family_name ?i . ?i rdf:type ontology:name }
[]
name
Q20646033
SYSTEM
Higuchi
Q20646033
(Q11542151,P734,c(Q82799))
action filter_type
action find
entity Q11542151
relation P734
type Q82799
[ANSWER]
['Q11542151', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?i WHERE { resource:Q11542151 property:P734 ?i . ?i rdf:type ontology:Q82799 }
Higuchi
Higuchi
action filter_type
action find
entity Rika Higuchi
relation family name
type name
['Rika Higuchi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?i WHERE { resource:Rika_Higuchi property:family_name ?i . ?i rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1792 Q129259
P190
Q56061
USER
Which administrative territories are the sister cities of Niš or Gdańsk ?
OR((Q129259,P190,c(Q56061)), (Q1792,P190,c(Q56061)))
action filter_type
action union
action find
entity Q129259
relation P190
action find
entity Q1792
relation P190
type Q56061
{'OR': [['Q129259', 'P190', {'concept': 'Q56061'}], ['Q1792', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q129259 property:P190 ?n } UNION { resource:Q1792 property:P190 ?n } } . ?n rdf:type ontology:Q56061 }
Gdańsk Niš
action filter_type
action union
action find
entity Niš
relation sister city
action find
entity Gdańsk
relation sister city
type administrative territorial entity
{'OR': [['Niš', 'sister city', {'concept': 'administrative territorial entity'}], ['Gdańsk', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Niš property:sister_city ?n } UNION { resource:Gdańsk property:sister_city ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1425428 Q571136 Q3323 Q992348 Q25409 Q750424 Q173474 Q1492 Q2656 Q38511
SYSTEM
Some of them are Newcastle upon Tyne, Senta, Belgorod, Marousi, Košice, Navapolatsk, Veliko Tarnovo, Barcelona, Palermo, Turku
Q8686 Q3159 Q992348 Q384 Q1296 Q26345 Q1829 Q37320 Q571136 Q326577 Q25409 Q2308046 Q41843 Q1520 Q3323 Q898 Q33959 Q38511 Q2656 Q26881 Q922959 Q1874 Q34370 Q750424 Q1425428 Q216 Q173474 Q1492 Q4165
OR((Q129259,P190,c(Q56061)), (Q1792,P190,c(Q56061)))
action filter_type
action union
action find
entity Q129259
relation P190
action find
entity Q1792
relation P190
type Q56061
[ANSWERS] are the sister cities of Niš or Gdańsk
{'OR': [['Q129259', 'P190', {'concept': 'Q56061'}], ['Q1792', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q129259 property:P190 ?n } UNION { resource:Q1792 property:P190 ?n } } . ?n rdf:type ontology:Q56061 }
Shanghai Kursk Marousi Skopje Ghent Kalmar Kaliningrad Cleveland Senta Bytów Košice Sparti Beersheba Astana Belgorod Omsk Nice Turku Palermo Helsingør Glyfada Odessa Rotterdam Navapolatsk Newcastle upon Tyne Vilnius Veliko Tarnovo Barcelona Bad Homburg vor der Höhe
Newcastle upon Tyne, Senta, Belgorod, Marousi, Košice, Navapolatsk, Veliko Tarnovo, Barcelona, Palermo and Turku are the sister cities of Niš or Gdańsk
Newcastle upon Tyne Senta Belgorod Marousi Košice Navapolatsk Veliko Tarnovo Barcelona Palermo Turku
action filter_type
action union
action find
entity Niš
relation sister city
action find
entity Gdańsk
relation sister city
type administrative territorial entity
{'OR': [['Niš', 'sister city', {'concept': 'administrative territorial entity'}], ['Gdańsk', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Niš property:sister_city ?n } UNION { resource:Gdańsk property:sister_city ?n } } . ?n rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q1492 Q34440
P47
Q15617994
USER
How many administrative territories are bordered by Barcelona or Villafranca Padovana ?
(c(Q15617994),P47,Q1492) (c(Q15617994),P47,Q34440)
action count
action union
action filter_type
action find_reverse
entity Q1492
relation P47
type Q15617994
action filter_type
action find_reverse
entity Q34440
relation P47
type Q15617994
[{'concept': 'Q15617994'}, 'P47', 'Q1492'] [{'concept': 'Q15617994'}, 'P47', 'Q34440']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Q1492 ) ( resource:Q34440 ) } . ?z property:P47 ?e }
Barcelona Villafranca Padovana
action count
action union
action filter_type
action find_reverse
entity Barcelona
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Villafranca Padovana
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Barcelona'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Villafranca Padovana']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Barcelona ) ( resource:Villafranca_Padovana ) } . ?z property:shares_border_with ?e }
[]
designation for an administrative territorial entity
SYSTEM
5
Q34388 Q34443 Q34469 Q34457 Q34463
(c(Q15617994),P47,Q1492) (c(Q15617994),P47,Q34440)
action count
action union
action filter_type
action find_reverse
entity Q1492
relation P47
type Q15617994
action filter_type
action find_reverse
entity Q34440
relation P47
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P47', 'Q1492'] [{'concept': 'Q15617994'}, 'P47', 'Q34440']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Q1492 ) ( resource:Q34440 ) } . ?z property:P47 ?e }
Rubano Campodoro Limena Mestrino Piazzola sul Brenta
5
action count
action union
action filter_type
action find_reverse
entity Barcelona
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find_reverse
entity Villafranca Padovana
relation shares border with
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Barcelona'] [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Villafranca Padovana']
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { VALUES ( ?e ) { ( resource:Barcelona ) ( resource:Villafranca_Padovana ) } . ?z property:shares_border_with ?e }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q6720075
P532
Q56061 Q2235308
USER
Which ship types have more number of administrative territories as registry port than MV Spreewald ?
(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 Q6720075
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?q ) WHERE { ?c property:P532 ?p . ?c rdf:type ontology:Q2235308 . ?p rdf:type ontology:Q56061 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { resource:Q6720075 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?q > ?d ) }
MV Spreewald
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 MV Spreewald
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?q ) WHERE { ?c property:port_of_registry ?p . ?c rdf:type ontology:ship_type . ?p rdf:type ontology:administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { resource:MV_Spreewald property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?q > ?d ) }
[]
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 Q6720075
relation P532
type Q2235308
[ANSWERS] have more number of administrative territories as registry port than MV Spreewald
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?q ) WHERE { ?c property:P532 ?p . ?c rdf:type ontology:Q2235308 . ?p rdf:type ontology:Q56061 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { resource:Q6720075 property:P532 ?i . ?i rdf:type ontology:Q2235308 } } . FILTER ( ?q > ?d ) }
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 have more number of administrative territories as registry port than MV Spreewald
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 MV Spreewald
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?p ) AS ?q ) WHERE { ?c property:port_of_registry ?p . ?c rdf:type ontology:ship_type . ?p rdf:type ontology:administrative_territorial_entity } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { resource:MV_Spreewald property:port_of_registry ?i . ?i rdf:type ontology:ship_type } } . FILTER ( ?q > ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027384
P532
Q56061 Q2235308
USER
And also tell me about Rachel Lewis?
(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 Q24027384
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?k ) WHERE { ?q rdf:type ontology:Q2235308 . ?f rdf:type ontology:Q56061 . ?q property:P532 ?f } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g rdf:type ontology:Q2235308 . resource:Q24027384 property:P532 ?g } } . FILTER ( ?k > ?r ) }
Rachel Lewis
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 Rachel Lewis
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?k ) WHERE { ?q rdf:type ontology:ship_type . ?f rdf:type ontology:administrative_territorial_entity . ?q property:port_of_registry ?f } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g rdf:type ontology:ship_type . resource:Rachel_Lewis property:port_of_registry ?g } } . FILTER ( ?k > ?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 Q24027384
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?k ) WHERE { ?q rdf:type ontology:Q2235308 . ?f rdf:type ontology:Q56061 . ?q property:P532 ?f } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g rdf:type ontology:Q2235308 . resource:Q24027384 property:P532 ?g } } . FILTER ( ?k > ?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 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 Rachel Lewis
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?f ) AS ?k ) WHERE { ?q rdf:type ontology:ship_type . ?f rdf:type ontology:administrative_territorial_entity . ?q property:port_of_registry ?f } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?r ) WHERE { ?g rdf:type ontology:ship_type . resource:Rachel_Lewis property:port_of_registry ?g } } . FILTER ( ?k > ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1492
P915
Q15416 Q838948
USER
How many television programs or works of art were filmed in the location Barcelona ?
(c(Q15416),P915,Q1492) (c(Q838948),P915,Q1492)
action count
action union
action filter_type
action find_reverse
entity Q1492
relation P915
type Q15416
action filter_type
action find_reverse
entity Q1492
relation P915
type Q838948
[{'concept': 'Q15416'}, 'P915', 'Q1492'] [{'concept': 'Q838948'}, 'P915', 'Q1492']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { VALUES ( ?y ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?s rdf:type ?y }
Barcelona
action count
action union
action filter_type
action find_reverse
entity Barcelona
relation filming location
type television program
action filter_type
action find_reverse
entity Barcelona
relation filming location
type work of art
[{'concept': 'television program'}, 'filming location', 'Barcelona'] [{'concept': 'work of art'}, 'filming location', 'Barcelona']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { VALUES ( ?y ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?s rdf:type ?y }
[]
television program work of art
SYSTEM
86
Q462149 Q733000 Q519548 Q1544046 Q879174 Q2060283 Q1146503 Q677636 Q4403815 Q2569575 Q2260885 Q169227 Q754474 Q3277324 Q2701566 Q1405950 Q164813 Q1365797 Q828725 Q3936036 Q507285 Q705247 Q3051699 Q593615 Q519910 Q7732705 Q3223618 Q4796862 Q2277666 Q3482397 Q666484 Q1050065 Q853274 Q902391 Q277203 Q284917 Q16782 Q591175 Q3259795 Q845252 Q639067 Q5431513 Q249350 Q1844760 Q60792 Q3286029 Q386714 Q375454 Q923911 Q212123 Q560123 Q2529482 Q3531639 Q3206424 Q2249443 Q4156191 Q7732880 Q2983218 Q3113698 Q2850202 Q2616450 Q1216772 Q2851722 Q1632620 Q5826620 Q329805 Q1807861 Q2581918 Q3819616 Q4008436 Q1188348 Q4078526 Q3067446 Q1213584 Q3928247 Q246391 Q3042451 Q624566 Q618479 Q1498454 Q1558443 Q16960397 Q13823993 Q1092932 Q598548 Q587876
(c(Q15416),P915,Q1492) (c(Q838948),P915,Q1492)
action count
action union
action filter_type
action find_reverse
entity Q1492
relation P915
type Q15416
action filter_type
action find_reverse
entity Q1492
relation P915
type Q838948
[ANSWER]
[{'concept': 'Q15416'}, 'P915', 'Q1492'] [{'concept': 'Q838948'}, 'P915', 'Q1492']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { VALUES ( ?y ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?s rdf:type ?y }
The Castle of Fu Manchu Red Lights The Nun Jamón Jamón Biutiful Savage Grace Love & Basketball Lisa and the Devil The Wine of Summer Nico and Dani Anguish 11-11-11 REC Mindscape Sleep Tight Our Agent Tiger Perfume: The Story of a Murderer L'Auberge espagnole The Passenger The Texican Lumière and Company Delusions of Grandeur Els Nens Salvatges The Sea Inside Eva The Evil Forest En brazos de la mujer madura Art Heist Rottweiler Eskalofrío Beloved/Friend REC 2 Beyond Re-Animator Winning Streak Fragile Voyage of the Damned Buried The Life of David Gale Los últimos días The Machinist Honey Fakers Haywire Meeting People Is Easy Wheels on Meals Manmadan Ambu Count Dracula Agent 3S3, Massacre in the Sun The Orphanage Vicky Cristina Barcelona A Friend of Mine Chimes at Midnight The Big Hit of Surcouf La Bandera Little Ashes The Bilingual Lover The Exquisite Cadaver Tengo ganas de ti Grand Piano Anita Takes a Chance Eloïse's Lover The Tit and the Moon Annihilation Earth Los Tarantos Sex of Angels All About My Mother Salvador Tirant lo Blanc In the City Diary of a Nymphomaniac Fermat's Room Barcelona Faust: Love of the Damned Hell of the Living Dead REC 4: Apocalypse REC 3: Genesis La ciutat cremada Arachnid Agustina of Aragon Uncovered L'espoir Afflicted The Gunman Circus World The Mosquito Net The Cheetah Girls 2
86
action count
action union
action filter_type
action find_reverse
entity Barcelona
relation filming location
type television program
action filter_type
action find_reverse
entity Barcelona
relation filming location
type work of art
[{'concept': 'television program'}, 'filming location', 'Barcelona'] [{'concept': 'work of art'}, 'filming location', 'Barcelona']
SELECT DISTINCT ( COUNT ( ?s ) AS ?t ) WHERE { VALUES ( ?y ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?s rdf:type ?y }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q129259
P159
Q43229
USER
Which organizations have their HQ location at Niš ?
(c(Q43229),P159,Q129259)
action filter_type
action find_reverse
entity Q129259
relation P159
type Q43229
[{'concept': 'Q43229'}, 'P159', 'Q129259']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q43229 . ?g property:P159 resource:Q129259 }
Niš
action filter_type
action find_reverse
entity Niš
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Niš']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:organization . ?g property:headquarters_location resource:Niš }
[]
organization
Q1274968 Q293650 Q6120922
SYSTEM
Ei Niš, AIK banka Niš, JGSP Novi Sad
Q6120922 Q1274968 Q293650 Q7042328
(c(Q43229),P159,Q129259)
action filter_type
action find_reverse
entity Q129259
relation P159
type Q43229
[ANSWERS] have their HQ location at Niš
[{'concept': 'Q43229'}, 'P159', 'Q129259']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q43229 . ?g property:P159 resource:Q129259 }
JGSP Novi Sad Ei Niš AIK banka Niš Niš-Ekspres
Ei Niš, AIK banka Niš and JGSP Novi Sad have their HQ location at Niš
Ei Niš AIK banka Niš JGSP Novi Sad
action filter_type
action find_reverse
entity Niš
relation headquarters location
type organization
[{'concept': 'organization'}, 'headquarters location', 'Niš']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:organization . ?g property:headquarters_location resource:Niš }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q129259
P119
Q502895
USER
Which person has Niš as place of burial ?
(c(Q502895),P119,Q129259)
action filter_type
action find_reverse
entity Q129259
relation P119
type Q502895
[{'concept': 'Q502895'}, 'P119', 'Q129259']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P119 resource:Q129259 }
Niš
action filter_type
action find_reverse
entity Niš
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Niš']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:place_of_burial resource:Niš }
[]
common name
Q26978755
SYSTEM
Ljubica Luković
Q26978755
(c(Q502895),P119,Q129259)
action filter_type
action find_reverse
entity Q129259
relation P119
type Q502895
[ANSWER] has Niš as place of burial
[{'concept': 'Q502895'}, 'P119', 'Q129259']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . ?j property:P119 resource:Q129259 }
Ljubica Luković
Ljubica Luković has Niš as place of burial
Ljubica Luković
action filter_type
action find_reverse
entity Niš
relation place of burial
type common name
[{'concept': 'common name'}, 'place of burial', 'Niš']
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . ?j property:place_of_burial resource:Niš }
[]