Simple Question (Direct)
Simple Question
Q455292
P172
Q2472587
USER
What is the ethnicity of MC Lyte ?
(Q455292,P172,c(Q2472587))
action filter_type
action find
entity Q455292
relation P172
type Q2472587
['Q455292', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q2472587 . resource:Q455292 property:P172 ?u }
MC Lyte
action filter_type
action find
entity MC Lyte
relation ethnic group
type people
['MC Lyte', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:people . resource:MC_Lyte property:ethnic_group ?u }
[]
people
Q49085
SYSTEM
African Americans
Q49085
(Q455292,P172,c(Q2472587))
action filter_type
action find
entity Q455292
relation P172
type Q2472587
The ethnicity of MC Lyte is of [ANSWER]
['Q455292', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q2472587 . resource:Q455292 property:P172 ?u }
African Americans
The ethnicity of MC Lyte is of African Americans
African Americans
action filter_type
action find
entity MC Lyte
relation ethnic group
type people
['MC Lyte', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:people . resource:MC_Lyte property:ethnic_group ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q455292
P19
Q56061
USER
Which administrative territory was MC Lyte born at ?
(Q455292,P19,c(Q56061))
action filter_type
action find
entity Q455292
relation P19
type Q56061
['Q455292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q455292 property:P19 ?u }
MC Lyte
action filter_type
action find
entity MC Lyte
relation place of birth
type administrative territorial entity
['MC Lyte', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:MC_Lyte property:place_of_birth ?u }
[]
administrative territorial entity
Q18419
SYSTEM
Brooklyn
Q18419
(Q455292,P19,c(Q56061))
action filter_type
action find
entity Q455292
relation P19
type Q56061
MC Lyte was born in [ANSWER]
['Q455292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q455292 property:P19 ?u }
Brooklyn
MC Lyte was born in Brooklyn
Brooklyn
action filter_type
action find
entity MC Lyte
relation place of birth
type administrative territorial entity
['MC Lyte', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:MC_Lyte property:place_of_birth ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q7274021 Q455292
P19
Q56061
USER
Or R. Sundarrajan?
OR((Q455292,P19,c(Q56061)), (Q7274021,P19,c(Q56061)))
action filter_type
action union
action find
entity Q455292
relation P19
action find
entity Q7274021
relation P19
type Q56061
{'OR': [['Q455292', 'P19', {'concept': 'Q56061'}], ['Q7274021', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { ?h property:P19 ?a . VALUES ( ?h ) { ( resource:Q455292 ) ( resource:Q7274021 ) } } . ?a rdf:type ontology:Q56061 }
R. Sundarrajan MC Lyte
action filter_type
action union
action find
entity MC Lyte
relation place of birth
action find
entity R. Sundarrajan
relation place of birth
type administrative territorial entity
{'OR': [['MC Lyte', 'place of birth', {'concept': 'administrative territorial entity'}], ['R. Sundarrajan', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?h property:place_of_birth ?a . VALUES ( ?h ) { ( resource:MC_Lyte ) ( resource:R._Sundarrajan ) } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q325951 Q18419
SYSTEM
Dharapuram, Brooklyn
Q325951 Q18419
OR((Q455292,P19,c(Q56061)), (Q7274021,P19,c(Q56061)))
action filter_type
action union
action find
entity Q455292
relation P19
action find
entity Q7274021
relation P19
type Q56061
[ANSWERS]
{'OR': [['Q455292', 'P19', {'concept': 'Q56061'}], ['Q7274021', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { ?h property:P19 ?a . VALUES ( ?h ) { ( resource:Q455292 ) ( resource:Q7274021 ) } } . ?a rdf:type ontology:Q56061 }
Dharapuram Brooklyn
Dharapuram Brooklyn
action filter_type
action union
action find
entity MC Lyte
relation place of birth
action find
entity R. Sundarrajan
relation place of birth
type administrative territorial entity
{'OR': [['MC Lyte', 'place of birth', {'concept': 'administrative territorial entity'}], ['R. Sundarrajan', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?h property:place_of_birth ?a . VALUES ( ?h ) { ( resource:MC_Lyte ) ( resource:R._Sundarrajan ) } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P17
Q15617994
USER
How many administrative territories are that administrative territory present in ?
(Q18419,P17,c(Q15617994))
['Q18419', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q16255602 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
['Brooklyn', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brooklyn property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q18419
SYSTEM
Did you mean Brooklyn ?
(Q325951,P17,c(Q15617994)) (Q18419,P17,c(Q15617994))
[ANSWER]
['Q325951', 'P17', {'concept': 'Q15617994'}] ['Q18419', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q16255602 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Brooklyn ?
Brooklyn
['Dharapuram', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Brooklyn', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brooklyn property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q18419,P17,c(Q15617994))
['Q18419', 'P17', {'concept': 'Q15617994'}]
['Brooklyn', 'country', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q18419,P17,c(Q15617994))
[ANSWER]
['Q18419', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q16255602 property:Q6256 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['Brooklyn', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Brooklyn property:country ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q26988094
P532
Q56061 Q2235308
USER
How many ship types are the registry port of approximately the same number of administrative territories as Emma Victory ?
(c(Q2235308),P532,c(Q56061))
action count
action approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q26988094
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q26988094 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?v = ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?v ) WHERE { ?g property:P532 ?a . ?g rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q56061 } GROUP BY ?g } }
Emma Victory
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Emma Victory
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Emma_Victory property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?v = ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?v ) WHERE { ?g property:port_of_registry ?a . ?g rdf:type ontology:ship_type . ?a rdf:type ontology:administrative_territorial_entity } GROUP BY ?g } }
[]
administrative territorial entity ship type
SYSTEM
65
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 Q1026780 Q22342351 Q15662618 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 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 approx
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q26988094
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Q26988094 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?v = ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?v ) WHERE { ?g property:P532 ?a . ?g rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q56061 } GROUP BY ?g } }
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 SS California Modern Express Djurgården 8 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 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
65
action count
action approx
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Emma Victory
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) WHERE { resource:Emma_Victory property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?v = ?l ) . { SELECT DISTINCT ?g ( COUNT ( ?a ) AS ?v ) WHERE { ?g property:port_of_registry ?a . ?g rdf:type ontology:ship_type . ?a rdf:type ontology:administrative_territorial_entity } GROUP BY ?g } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24026993
P532
Q56061 Q2235308
USER
Which ship types are the registry port of more number of administrative territories than Amity ?
(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 Q24026993
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q56061 . ?s property:P532 ?a } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Q24026993 property:P532 ?w . ?w rdf:type ontology:Q2235308 } } . FILTER ( ?l > ?y ) }
Amity
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 Amity
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s rdf:type ontology:ship_type . ?a rdf:type ontology:administrative_territorial_entity . ?s property:port_of_registry ?a } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Amity property:port_of_registry ?w . ?w rdf:type ontology:ship_type } } . FILTER ( ?l > ?y ) }
[]
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 Q24026993
relation P532
type Q2235308
[ANSWERS] are the registry port of more number of administrative territories than Amity
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s rdf:type ontology:Q2235308 . ?a rdf:type ontology:Q56061 . ?s property:P532 ?a } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Q24026993 property:P532 ?w . ?w rdf:type ontology:Q2235308 } } . FILTER ( ?l > ?y ) }
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 more number of administrative territories than Amity
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 Amity
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?a ) AS ?l ) WHERE { ?s rdf:type ontology:ship_type . ?a rdf:type ontology:administrative_territorial_entity . ?s property:port_of_registry ?a } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { resource:Amity property:port_of_registry ?w . ?w rdf:type ontology:ship_type } } . FILTER ( ?l > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027171
P532
Q56061 Q2235308
USER
And how about Mary Davies?
(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 Q24027171
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?y ) WHERE { ?v property:P532 ?d . ?v rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?v } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Q24027171 property:P532 ?a . ?a rdf:type ontology:Q2235308 } } }
Mary Davies
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 Mary Davies
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?y ) WHERE { ?v property:port_of_registry ?d . ?v rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Mary_Davies property:port_of_registry ?a . ?a rdf:type ontology:ship_type } } }
[]
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 Q24027171
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?y ) WHERE { ?v property:P532 ?d . ?v rdf:type ontology:Q2235308 . ?d rdf:type ontology:Q56061 } GROUP BY ?v } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Q24027171 property:P532 ?a . ?a rdf:type ontology:Q2235308 } } }
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 Mary Davies
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?d ) AS ?y ) WHERE { ?v property:port_of_registry ?d . ?v rdf:type ontology:ship_type . ?d rdf:type ontology:administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?y > ?r ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?r ) WHERE { resource:Mary_Davies property:port_of_registry ?a . ?a rdf:type ontology:ship_type } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7869195 Q35462
P137
Q781132
USER
Which military branches manages RMS Aquitania or USS Eolus ?
OR((Q35462,P137,c(Q781132)), (Q7869195,P137,c(Q781132)))
action filter_type
action union
action find
entity Q35462
relation P137
action find
entity Q7869195
relation P137
type Q781132
{'OR': [['Q35462', 'P137', {'concept': 'Q781132'}], ['Q7869195', 'P137', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?e ) { ( resource:Q35462 ) ( resource:Q7869195 ) } . ?e property:P137 ?g } . ?g rdf:type ontology:Q781132 }
USS Eolus RMS Aquitania
action filter_type
action union
action find
entity RMS Aquitania
relation operator
action find
entity USS Eolus
relation operator
type military branch
{'OR': [['RMS Aquitania', 'operator', {'concept': 'military branch'}], ['USS Eolus', 'operator', {'concept': 'military branch'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?e ) { ( resource:RMS_Aquitania ) ( resource:USS_Eolus ) } . ?e property:operator ?g } . ?g rdf:type ontology:military_branch }
[]
military branch
Q11220 Q172771
SYSTEM
United States Navy, Royal Navy
Q11220 Q172771
OR((Q35462,P137,c(Q781132)), (Q7869195,P137,c(Q781132)))
action filter_type
action union
action find
entity Q35462
relation P137
action find
entity Q7869195
relation P137
type Q781132
[ANSWERS] manage RMS Aquitania or USS Eolus
{'OR': [['Q35462', 'P137', {'concept': 'Q781132'}], ['Q7869195', 'P137', {'concept': 'Q781132'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?e ) { ( resource:Q35462 ) ( resource:Q7869195 ) } . ?e property:P137 ?g } . ?g rdf:type ontology:Q781132 }
United States Navy Royal Navy
United States Navy and Royal Navy manage RMS Aquitania or USS Eolus
United States Navy Royal Navy
action filter_type
action union
action find
entity RMS Aquitania
relation operator
action find
entity USS Eolus
relation operator
type military branch
{'OR': [['RMS Aquitania', 'operator', {'concept': 'military branch'}], ['USS Eolus', 'operator', {'concept': 'military branch'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?e ) { ( resource:RMS_Aquitania ) ( resource:USS_Eolus ) } . ?e property:operator ?g } . ?g rdf:type ontology:military_branch }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7120908
P137
Q2235308
USER
Does PS Speke can be described as service operator of those military branches ?
(Q7120908,P137,Q11220) (Q7120908,P137,Q172771)
action is_in
entity prev_answer
action find
entity Q7120908
relation P137
['Q7120908', 'P137', 'Q11220'] ['Q7120908', 'P137', 'Q172771']
ASK WHERE { resource:Q7120908 property:P137 ?j . VALUES ( ?j ) { ( resource:Q11220 ) ( resource:Q172771 ) } }
PS Speke
action is_in
entity prev_answer
action find
entity PS Speke
relation operator
['PS Speke', 'operator', 'United States Navy'] ['PS Speke', 'operator', 'Royal Navy']
ASK WHERE { resource:PS_Speke property:operator ?j . VALUES ( ?j ) { ( resource:United_States_Navy ) ( resource:Royal_Navy ) } }
[]
ship type
SYSTEM
NO
(Q7120908,P137,Q11220) (Q7120908,P137,Q172771)
action is_in
entity prev_answer
action find
entity Q7120908
relation P137
[ANSWER]
['Q7120908', 'P137', 'Q11220'] ['Q7120908', 'P137', 'Q172771']
ASK WHERE { resource:Q7120908 property:P137 ?j . VALUES ( ?j ) { ( resource:Q11220 ) ( resource:Q172771 ) } }
No
action is_in
entity prev_answer
action find
entity PS Speke
relation operator
['PS Speke', 'operator', 'United States Navy'] ['PS Speke', 'operator', 'Royal Navy']
ASK WHERE { resource:PS_Speke property:operator ?j . VALUES ( ?j ) { ( resource:United_States_Navy ) ( resource:Royal_Navy ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q468026 Q5529347 Q1055
P532
Q486972
USER
Does SS Maxim Gorkiy have Gbiska and Hamburg as registry port ?
(Q468026,P532,Q5529347) (Q468026,P532,Q1055)
action is_in
entity Q468026
action intersection
action find_reverse
entity Q5529347
relation P532
action find_reverse
entity Q1055
relation P532
['Q468026', 'P532', 'Q5529347'] ['Q468026', 'P532', 'Q1055']
ASK WHERE { resource:Q468026 property:P532 resource:Q5529347 . resource:Q468026 property:P532 resource:Q1055 }
SS Maxim Gorkiy Gbiska Hamburg
action is_in
entity SS Maxim Gorkiy
action intersection
action find_reverse
entity Gbiska
relation port of registry
action find_reverse
entity Hamburg
relation port of registry
['SS Maxim Gorkiy', 'port of registry', 'Gbiska'] ['SS Maxim Gorkiy', 'port of registry', 'Hamburg']
ASK WHERE { resource:SS_Maxim_Gorkiy property:port_of_registry resource:Gbiska . resource:SS_Maxim_Gorkiy property:port_of_registry resource:Hamburg }
[]
human settlement
SYSTEM
NO and YES respectively
(Q468026,P532,Q5529347) (Q468026,P532,Q1055)
action is_in
entity Q468026
action intersection
action find_reverse
entity Q5529347
relation P532
action find_reverse
entity Q1055
relation P532
[ANSWER]
['Q468026', 'P532', 'Q5529347'] ['Q468026', 'P532', 'Q1055']
ASK WHERE { resource:Q468026 property:P532 resource:Q5529347 . resource:Q468026 property:P532 resource:Q1055 }
NO and YES respectively
action is_in
entity SS Maxim Gorkiy
action intersection
action find_reverse
entity Gbiska
relation port of registry
action find_reverse
entity Hamburg
relation port of registry
['SS Maxim Gorkiy', 'port of registry', 'Gbiska'] ['SS Maxim Gorkiy', 'port of registry', 'Hamburg']
ASK WHERE { resource:SS_Maxim_Gorkiy property:port_of_registry resource:Gbiska . resource:SS_Maxim_Gorkiy property:port_of_registry resource:Hamburg }
[]