Simple Question (Direct)
Simple Question
Q472954
P21
Q290
USER
What is the sex of Antoine Bernheim ?
(Q472954,P21,c(Q290))
action filter_type
action find
entity Q472954
relation P21
type Q290
['Q472954', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q472954 property:P21 ?n . ?n rdf:type ontology:Q290 }
Antoine Bernheim
action filter_type
action find
entity Antoine Bernheim
relation gender
type sex
['Antoine Bernheim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Antoine_Bernheim property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q472954,P21,c(Q290))
action filter_type
action find
entity Q472954
relation P21
type Q290
The sex of Antoine Bernheim is the [ANSWER]
['Q472954', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q472954 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
The sex of Antoine Bernheim is the male
male
action filter_type
action find
entity Antoine Bernheim
relation gender
type sex
['Antoine Bernheim', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Antoine_Bernheim property:gender ?n . ?n rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q472954
P19
Q56061
USER
Which administrative territory is the birthplace of Antoine Bernheim ?
(Q472954,P19,c(Q56061))
action filter_type
action find
entity Q472954
relation P19
type Q56061
['Q472954', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q472954 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Antoine Bernheim
action filter_type
action find
entity Antoine Bernheim
relation place of birth
type administrative territorial entity
['Antoine Bernheim', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Antoine_Bernheim property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q90
SYSTEM
Paris
Q90
(Q472954,P19,c(Q56061))
action filter_type
action find
entity Q472954
relation P19
type Q56061
[ANSWER] is the birthplace of Antoine Bernheim
['Q472954', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q472954 property:P19 ?o . ?o rdf:type ontology:Q56061 }
Paris
Paris is the birthplace of Antoine Bernheim
Paris
action filter_type
action find
entity Antoine Bernheim
relation place of birth
type administrative territorial entity
['Antoine Bernheim', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Antoine_Bernheim property:place_of_birth ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2530706
Q56061
USER
And also tell me about Voldemar Tago?
(Q2530706,P19,c(Q56061))
action filter_type
action find
entity Q2530706
relation P19
type Q56061
['Q2530706', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2530706 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Voldemar Tago
action filter_type
action find
entity Voldemar Tago
relation place of birth
type administrative territorial entity
['Voldemar Tago', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Voldemar_Tago property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q102158
SYSTEM
Narva
Q102158
(Q2530706,P19,c(Q56061))
action filter_type
action find
entity Q2530706
relation P19
type Q56061
[ANSWER]
['Q2530706', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q2530706 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Narva
Narva
action filter_type
action find
entity Voldemar Tago
relation place of birth
type administrative territorial entity
['Voldemar Tago', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Voldemar_Tago property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027007
P532
Q56061 Q2235308
USER
Which ship types have more number of administrative territories as their registry harbour than Ellen ?
(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 Q24027007
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?t ) WHERE { ?d property:P532 ?o . ?d rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q56061 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q24027007 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?t > ?b ) }
Ellen
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 Ellen
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?t ) WHERE { ?d property:port_of_registry ?o . ?d rdf:type ontology:ship_type . ?o rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Ellen property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?t > ?b ) }
[]
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 Q24027007
relation P532
type Q2235308
[ANSWERS] have more number of administrative territories as their registry harbour than Ellen
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?t ) WHERE { ?d property:P532 ?o . ?d rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q56061 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Q24027007 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?t > ?b ) }
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 their registry harbour than Ellen
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 Ellen
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?t ) WHERE { ?d property:port_of_registry ?o . ?d rdf:type ontology:ship_type . ?o rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?b ) WHERE { resource:Ellen property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?t > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24026929
P532
Q56061 Q2235308
USER
And how about Exchange?
(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 Q24026929
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?a ) WHERE { ?h rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 . ?h property:P532 ?y } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:Q2235308 . resource:Q24026929 property:P532 ?t } } . FILTER ( ?a > ?u ) }
Exchange
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 Exchange
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?a ) WHERE { ?h rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity . ?h property:port_of_registry ?y } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:ship_type . resource:Exchange property:port_of_registry ?t } } . FILTER ( ?a > ?u ) }
[]
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 Q24026929
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?a ) WHERE { ?h rdf:type ontology:Q2235308 . ?y rdf:type ontology:Q56061 . ?h property:P532 ?y } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:Q2235308 . resource:Q24026929 property:P532 ?t } } . FILTER ( ?a > ?u ) }
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 Exchange
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?y ) AS ?a ) WHERE { ?h rdf:type ontology:ship_type . ?y rdf:type ontology:administrative_territorial_entity . ?h property:port_of_registry ?y } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) WHERE { ?t rdf:type ontology:ship_type . resource:Exchange property:port_of_registry ?t } } . FILTER ( ?a > ?u ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q2596850 Q468026 Q35462
P176
Q43229
USER
Which organizations are the manufacturers of MS Azura, SS Maxim Gorkiy and RMS Aquitania ?
(Q2596850,P176,c(Q43229)) (Q468026,P176,c(Q43229)) (Q35462,P176,c(Q43229))
action union
action filter_type
action find
entity Q2596850
relation P176
type Q43229
action filter_type
action find
entity Q468026
relation P176
type Q43229
action filter_type
action find
entity Q35462
relation P176
type Q43229
['Q2596850', 'P176', {'concept': 'Q43229'}] ['Q468026', 'P176', {'concept': 'Q43229'}] ['Q35462', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?a ) { ( resource:Q2596850 ) ( resource:Q468026 ) } . ?a property:P176 ?e }
MS Azura SS Maxim Gorkiy RMS Aquitania
action union
action filter_type
action find
entity MS Azura
relation manufacturer
type organization
action filter_type
action find
entity SS Maxim Gorkiy
relation manufacturer
type organization
action filter_type
action find
entity RMS Aquitania
relation manufacturer
type organization
['MS Azura', 'manufacturer', {'concept': 'organization'}] ['SS Maxim Gorkiy', 'manufacturer', {'concept': 'organization'}] ['RMS Aquitania', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?a ) { ( resource:MS_Azura ) ( resource:SS_Maxim_Gorkiy ) } . ?a property:manufacturer ?e }
[]
organization
Q1327429 Q700418 Q1699428
SYSTEM
Fincantieri, Howaldtswerke-Deutsche Werft, John Brown & Company
Q1327429 Q700418 Q1699428
(Q2596850,P176,c(Q43229)) (Q468026,P176,c(Q43229)) (Q35462,P176,c(Q43229))
action union
action filter_type
action find
entity Q2596850
relation P176
type Q43229
action filter_type
action find
entity Q468026
relation P176
type Q43229
action filter_type
action find
entity Q35462
relation P176
type Q43229
[ANSWERS] are the manufacturers of MS Azura, SS Maxim Gorkiy and RMS Aquitania
['Q2596850', 'P176', {'concept': 'Q43229'}] ['Q468026', 'P176', {'concept': 'Q43229'}] ['Q35462', 'P176', {'concept': 'Q43229'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?a ) { ( resource:Q2596850 ) ( resource:Q468026 ) } . ?a property:P176 ?e }
Fincantieri Howaldtswerke-Deutsche Werft John Brown & Company
Fincantieri, Howaldtswerke-Deutsche Werft and John Brown & Company are the manufacturers of MS Azura, SS Maxim Gorkiy and RMS Aquitania
Fincantieri Howaldtswerke-Deutsche Werft John Brown & Company
action union
action filter_type
action find
entity MS Azura
relation manufacturer
type organization
action filter_type
action find
entity SS Maxim Gorkiy
relation manufacturer
type organization
action filter_type
action find
entity RMS Aquitania
relation manufacturer
type organization
['MS Azura', 'manufacturer', {'concept': 'organization'}] ['SS Maxim Gorkiy', 'manufacturer', {'concept': 'organization'}] ['RMS Aquitania', 'manufacturer', {'concept': 'organization'}]
SELECT DISTINCT ?e WHERE { VALUES ( ?a ) { ( resource:MS_Azura ) ( resource:SS_Maxim_Gorkiy ) } . ?a property:manufacturer ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2596850
P289
Q2235308
USER
What is the vessel class of MS Azura ?
(Q1327429,P289,c(Q2235308)) (Q700418,P289,c(Q2235308)) (Q1699428,P289,c(Q2235308))
action filter_type
action find
entity Q2596850
relation P289
type Q2235308
['Q1327429', 'P289', {'concept': 'Q2235308'}] ['Q700418', 'P289', {'concept': 'Q2235308'}] ['Q1699428', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?h WHERE { resource:Q2596850 property:P289 ?h . ?h rdf:type ontology:Q2235308 }
MS Azura
action filter_type
action find
entity MS Azura
relation vessel class
type ship type
['Fincantieri', 'vessel class', {'concept': 'ship type'}] ['Howaldtswerke-Deutsche Werft', 'vessel class', {'concept': 'ship type'}] ['John Brown & Company', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?h WHERE { resource:MS_Azura property:vessel_class ?h . ?h rdf:type ontology:ship_type }
[]
ship type
Q3114654
SYSTEM
Grand-class cruise ship
Q3114654
(Q1327429,P289,c(Q2235308)) (Q700418,P289,c(Q2235308)) (Q1699428,P289,c(Q2235308))
action filter_type
action find
entity Q2596850
relation P289
type Q2235308
The vessel class of MS Azura is a [ANSWER]
['Q1327429', 'P289', {'concept': 'Q2235308'}] ['Q700418', 'P289', {'concept': 'Q2235308'}] ['Q1699428', 'P289', {'concept': 'Q2235308'}]
SELECT DISTINCT ?h WHERE { resource:Q2596850 property:P289 ?h . ?h rdf:type ontology:Q2235308 }
Grand-class cruise ship
The vessel class of MS Azura is a Grand-class cruise ship
Grand-class cruise ship
action filter_type
action find
entity MS Azura
relation vessel class
type ship type
['Fincantieri', 'vessel class', {'concept': 'ship type'}] ['Howaldtswerke-Deutsche Werft', 'vessel class', {'concept': 'ship type'}] ['John Brown & Company', 'vessel class', {'concept': 'ship type'}]
SELECT DISTINCT ?h WHERE { resource:MS_Azura property:vessel_class ?h . ?h rdf:type ontology:ship_type }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q3114654 Q6335033 Q745700
P137
Q4830453
USER
Was that ship type operated by KCAX and Princess Cruises ?
(Q3114654,P137,Q6335033) (Q3114654,P137,Q745700)
action is_in
entity Q3114654
action intersection
action find_reverse
entity Q6335033
relation P137
action find_reverse
entity Q745700
relation P137
['Q3114654', 'P137', 'Q6335033'] ['Q3114654', 'P137', 'Q745700']
ASK WHERE { resource:Q3114654 property:P137 resource:Q6335033 . resource:Q3114654 property:P137 resource:Q745700 }
Grand-class cruise ship KCAX Princess Cruises
action is_in
entity Grand-class cruise ship
action intersection
action find_reverse
entity KCAX
relation operator
action find_reverse
entity Princess Cruises
relation operator
['Grand-class cruise ship', 'operator', 'KCAX'] ['Grand-class cruise ship', 'operator', 'Princess Cruises']
ASK WHERE { resource:Grand-class_cruise_ship property:operator resource:KCAX . resource:Grand-class_cruise_ship property:operator resource:Princess_Cruises }
[]
business enterprise
SYSTEM
NO and YES respectively
(Q3114654,P137,Q6335033) (Q3114654,P137,Q745700)
action is_in
entity Q3114654
action intersection
action find_reverse
entity Q6335033
relation P137
action find_reverse
entity Q745700
relation P137
[ANSWER]
['Q3114654', 'P137', 'Q6335033'] ['Q3114654', 'P137', 'Q745700']
ASK WHERE { resource:Q3114654 property:P137 resource:Q6335033 . resource:Q3114654 property:P137 resource:Q745700 }
NO and YES respectively
action is_in
entity Grand-class cruise ship
action intersection
action find_reverse
entity KCAX
relation operator
action find_reverse
entity Princess Cruises
relation operator
['Grand-class cruise ship', 'operator', 'KCAX'] ['Grand-class cruise ship', 'operator', 'Princess Cruises']
ASK WHERE { resource:Grand-class_cruise_ship property:operator resource:KCAX . resource:Grand-class_cruise_ship property:operator resource:Princess_Cruises }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P532
Q56061 Q2235308
USER
Which administrative territories are the port of registry of approximately 5 ship types ?
(c(Q2235308),P532,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P532
type Q56061
type Q2235308
value 5
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P532 ?m . ?m rdf:type ontology:Q56061 . ?u rdf:type ontology:Q2235308 } GROUP BY ?m } . FILTER ( ?j = 5 ) }
action approx
action find_reverse_tuple_counts
relation port of registry
type administrative territorial entity
type ship type
value 5
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:port_of_registry ?m . ?m rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:ship_type } GROUP BY ?m } . FILTER ( ?j = 5 ) }
[]
administrative territorial entity ship type
Q84 Q1770 Q3519
SYSTEM
London, Tallinn, Bari
Q84 Q1770 Q23800 Q3306 Q18569 Q3519 Q30985
(c(Q2235308),P532,c(Q56061))
action approx
action find_reverse_tuple_counts
relation P532
type Q56061
type Q2235308
value 5
[ANSWERS] are the port of registry of approximately 5 ship types
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:P532 ?m . ?m rdf:type ontology:Q56061 . ?u rdf:type ontology:Q2235308 } GROUP BY ?m } . FILTER ( ?j = 5 ) }
London Tallinn Valletta Panama City Douglas Bari Hamilton
London, Tallinn and Bari are the port of registry of approximately 5 ship types
London Tallinn Bari
action approx
action find_reverse_tuple_counts
relation port of registry
type administrative territorial entity
type ship type
value 5
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?u ) AS ?j ) WHERE { ?u property:port_of_registry ?m . ?m rdf:type ontology:administrative_territorial_entity . ?u rdf:type ontology:ship_type } GROUP BY ?m } . FILTER ( ?j = 5 ) }
[]