Simple Question (Direct)
Simple Question
Q460712
P734
Q82799
USER
Who has the surname Mario Ferrero ?
(Q460712,P734,c(Q82799))
action filter_type
action find
entity Q460712
relation P734
type Q82799
['Q460712', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q82799 . resource:Q460712 property:P734 ?c }
Mario Ferrero
action filter_type
action find
entity Mario Ferrero
relation family name
type name
['Mario Ferrero', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:name . resource:Mario_Ferrero property:family_name ?c }
[]
name
Q21493848
SYSTEM
Ferrero
Q21493848
(Q460712,P734,c(Q82799))
action filter_type
action find
entity Q460712
relation P734
type Q82799
[ANSWER] has the surname Mario [ANSWER]
['Q460712', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q82799 . resource:Q460712 property:P734 ?c }
Ferrero
Ferrero has the surname Mario Ferrero
Ferrero
action filter_type
action find
entity Mario Ferrero
relation family name
type name
['Mario Ferrero', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:name . resource:Mario_Ferrero property:family_name ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q460712
P54
Q43229
USER
What is the team that Mario Ferrero is a member of ?
(Q460712,P54,c(Q43229))
action filter_type
action find
entity Q460712
relation P54
type Q43229
['Q460712', 'P54', {'concept': 'Q43229'}]
SELECT DISTINCT ?h WHERE { resource:Q460712 property:P54 ?h . ?h rdf:type ontology:Q43229 }
Mario Ferrero
action filter_type
action find
entity Mario Ferrero
relation member of sports team
type organization
['Mario Ferrero', 'member of sports team', {'concept': 'organization'}]
SELECT DISTINCT ?h WHERE { resource:Mario_Ferrero property:member_of_sports_team ?h . ?h rdf:type ontology:organization }
[]
organization
Q1422
SYSTEM
Juventus F.C.
Q1422
(Q460712,P54,c(Q43229))
action filter_type
action find
entity Q460712
relation P54
type Q43229
The team that Mario Ferrero is a member of is the [ANSWER]
['Q460712', 'P54', {'concept': 'Q43229'}]
SELECT DISTINCT ?h WHERE { resource:Q460712 property:P54 ?h . ?h rdf:type ontology:Q43229 }
Juventus F.C.
The team that Mario Ferrero is a member of is the Juventus F.C.
Juventus F.C.
action filter_type
action find
entity Mario Ferrero
relation member of sports team
type organization
['Mario Ferrero', 'member of sports team', {'concept': 'organization'}]
SELECT DISTINCT ?h WHERE { resource:Mario_Ferrero property:member_of_sports_team ?h . ?h rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q460712
P20
Q56061
USER
Where did that person expire ?
(Q1422,P20,c(Q56061))
action filter_type
action find
entity Q460712
relation P20
type Q56061
['Q1422', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q460712 property:P20 ?f }
Mario Ferrero
action filter_type
action find
entity Mario Ferrero
relation place of death
type administrative territorial entity
['Juventus F.C.', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Mario_Ferrero property:place_of_death ?f }
[]
administrative territorial entity
Q495
SYSTEM
Turin
Q495
(Q1422,P20,c(Q56061))
action filter_type
action find
entity Q460712
relation P20
type Q56061
That person expired in [ANSWER]
['Q1422', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q460712 property:P20 ?f }
Turin
That person expired in Turin
Turin
action filter_type
action find
entity Mario Ferrero
relation place of death
type administrative territorial entity
['Juventus F.C.', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Mario_Ferrero property:place_of_death ?f }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P276
Q15275719 Q1656682
USER
How many recurring events and events have their location as that administrative territory ?
(c(Q15275719),P276,Q495) (c(Q1656682),P276,Q495) (c(Q15275719),P276,Q495) (c(Q1656682),P276,Q495)
action count
action union
action filter_type
action find_reverse
entity Q495
relation P276
type Q15275719
action filter_type
action find_reverse
entity Q495
relation P276
type Q1656682
[{'concept': 'Q15275719'}, 'P276', 'Q495'] [{'concept': 'Q1656682'}, 'P276', 'Q495'] [{'concept': 'Q15275719'}, 'P276', 'Q495'] [{'concept': 'Q1656682'}, 'P276', 'Q495']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:P276 resource:Q495 . ?u rdf:type ontology:Q15275719 } UNION { ?u property:P276 resource:Q495 . ?u rdf:type ontology:Q1656682 } }
action count
action union
action filter_type
action find_reverse
entity Turin
relation location
type recurring event
action filter_type
action find_reverse
entity Turin
relation location
type event
[{'concept': 'recurring event'}, 'location', 'Turin'] [{'concept': 'event'}, 'location', 'Turin'] [{'concept': 'recurring event'}, 'location', 'Turin'] [{'concept': 'event'}, 'location', 'Turin']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:location resource:Turin . ?u rdf:type ontology:recurring_event } UNION { ?u property:location resource:Turin . ?u rdf:type ontology:event } }
[]
recurring event event
SYSTEM
4 recurring events and 1 events
Q3070515 Q1441481 Q3744007 Q3965273 Q4006964
(c(Q15275719),P276,Q495) (c(Q1656682),P276,Q495) (c(Q15275719),P276,Q495) (c(Q1656682),P276,Q495)
action count
action union
action filter_type
action find_reverse
entity Q495
relation P276
type Q15275719
action filter_type
action find_reverse
entity Q495
relation P276
type Q1656682
[ANSWER]
[{'concept': 'Q15275719'}, 'P276', 'Q495'] [{'concept': 'Q1656682'}, 'P276', 'Q495'] [{'concept': 'Q15275719'}, 'P276', 'Q495'] [{'concept': 'Q1656682'}, 'P276', 'Q495']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:P276 resource:Q495 . ?u rdf:type ontology:Q15275719 } UNION { ?u property:P276 resource:Q495 . ?u rdf:type ontology:Q1656682 } }
Torino LGBT Film Festival Torino Film Festival Italian Environmental Film Festival Sottodiciotto Filmfestival VIEW Conference
4 recurring events and 1 events
action count
action union
action filter_type
action find_reverse
entity Turin
relation location
type recurring event
action filter_type
action find_reverse
entity Turin
relation location
type event
[{'concept': 'recurring event'}, 'location', 'Turin'] [{'concept': 'event'}, 'location', 'Turin'] [{'concept': 'recurring event'}, 'location', 'Turin'] [{'concept': 'event'}, 'location', 'Turin']
SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) WHERE { { ?u property:location resource:Turin . ?u rdf:type ontology:recurring_event } UNION { ?u property:location resource:Turin . ?u rdf:type ontology:event } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q24027405
P532
Q56061 Q2235308
USER
Which ship types have greater number of administrative territories as their registry harbour than Rosland ?
(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 Q24027405
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?d ) WHERE { ?s property:P532 ?u . ?s rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { resource:Q24027405 property:P532 ?x . ?x rdf:type ontology:Q2235308 } } . FILTER ( ?d > ?h ) }
Rosland
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 Rosland
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 ( ?u ) AS ?d ) WHERE { ?s property:port_of_registry ?u . ?s rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { resource:Rosland property:port_of_registry ?x . ?x rdf:type ontology:ship_type } } . FILTER ( ?d > ?h ) }
[]
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 Q24027405
relation P532
type Q2235308
[ANSWERS] have greater number of administrative territories as their registry harbour than Rosland
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?u ) AS ?d ) WHERE { ?s property:P532 ?u . ?s rdf:type ontology:Q2235308 . ?u rdf:type ontology:Q56061 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { resource:Q24027405 property:P532 ?x . ?x rdf:type ontology:Q2235308 } } . FILTER ( ?d > ?h ) }
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 greater number of administrative territories as their registry harbour than Rosland
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 Rosland
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 ( ?u ) AS ?d ) WHERE { ?s property:port_of_registry ?u . ?s rdf:type ontology:ship_type . ?u rdf:type ontology:administrative_territorial_entity } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?h ) WHERE { resource:Rosland property:port_of_registry ?x . ?x rdf:type ontology:ship_type } } . FILTER ( ?d > ?h ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q24027025
P532
Q56061 Q2235308
USER
And how about Mary Hughes?
(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 Q24027025
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { ?a rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 . ?a property:P532 ?t } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w rdf:type ontology:Q2235308 . resource:Q24027025 property:P532 ?w } } . FILTER ( ?h > ?u ) }
Mary Hughes
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 Hughes
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { ?a rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity . ?a property:port_of_registry ?t } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w rdf:type ontology:ship_type . resource:Mary_Hughes property:port_of_registry ?w } } . FILTER ( ?h > ?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 Q24027025
relation P532
type Q2235308
[ANSWERS]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { ?a rdf:type ontology:Q2235308 . ?t rdf:type ontology:Q56061 . ?a property:P532 ?t } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w rdf:type ontology:Q2235308 . resource:Q24027025 property:P532 ?w } } . FILTER ( ?h > ?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 Mary Hughes
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?h ) WHERE { ?a rdf:type ontology:ship_type . ?t rdf:type ontology:administrative_territorial_entity . ?a property:port_of_registry ?t } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?u ) WHERE { ?w rdf:type ontology:ship_type . resource:Mary_Hughes property:port_of_registry ?w } } . FILTER ( ?h > ?u ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q468026
P138
Q486972
USER
Which human settlement is the etymology of SS Maxim Gorkiy ?
(Q468026,P138,c(Q486972))
action filter_type
action find
entity Q468026
relation P138
type Q486972
['Q468026', 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?t WHERE { resource:Q468026 property:P138 ?t . ?t rdf:type ontology:Q486972 }
SS Maxim Gorkiy
action filter_type
action find
entity SS Maxim Gorkiy
relation named after
type human settlement
['SS Maxim Gorkiy', 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?t WHERE { resource:SS_Maxim_Gorkiy property:named_after ?t . ?t rdf:type ontology:human_settlement }
[]
human settlement
Q1055
SYSTEM
Hamburg
Q1055
(Q468026,P138,c(Q486972))
action filter_type
action find
entity Q468026
relation P138
type Q486972
[ANSWER] is the etymology of SS Maxim Gorkiy
['Q468026', 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?t WHERE { resource:Q468026 property:P138 ?t . ?t rdf:type ontology:Q486972 }
Hamburg
Hamburg is the etymology of SS Maxim Gorkiy
Hamburg
action filter_type
action find
entity SS Maxim Gorkiy
relation named after
type human settlement
['SS Maxim Gorkiy', 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?t WHERE { resource:SS_Maxim_Gorkiy property:named_after ?t . ?t rdf:type ontology:human_settlement }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2289583
Q486972
USER
And how about Sinsum/Burhave?
(Q2289583,P138,c(Q486972))
action filter_type
action find
entity Q2289583
relation P138
type Q486972
['Q2289583', 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?i WHERE { resource:Q2289583 property:P138 ?i . ?i rdf:type ontology:Q486972 }
Sinsum/Burhave
action filter_type
action find
entity Sinsum/Burhave
relation named after
type human settlement
['Sinsum/Burhave', 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?i WHERE { resource:Sinsum/Burhave property:named_after ?i . ?i rdf:type ontology:human_settlement }
[]
human settlement
Q1016278
SYSTEM
Burhave
Q1016278
(Q2289583,P138,c(Q486972))
action filter_type
action find
entity Q2289583
relation P138
type Q486972
[ANSWER]
['Q2289583', 'P138', {'concept': 'Q486972'}]
SELECT DISTINCT ?i WHERE { resource:Q2289583 property:P138 ?i . ?i rdf:type ontology:Q486972 }
Burhave
Burhave
action filter_type
action find
entity Sinsum/Burhave
relation named after
type human settlement
['Sinsum/Burhave', 'named after', {'concept': 'human settlement'}]
SELECT DISTINCT ?i WHERE { resource:Sinsum/Burhave property:named_after ?i . ?i rdf:type ontology:human_settlement }
[]