Simple Question (Direct)
Simple Question
Q5437879
P22
Q502895
USER
Which male person has a child named Fatimah bint al-Hasan ?
(Q5437879,P22,c(Q502895))
action filter_type
action find
entity Q5437879
relation P22
type Q502895
['Q5437879', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5437879 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Fatimah bint al-Hasan
action filter_type
action find
entity Fatimah bint al-Hasan
relation father
type common name
['Fatimah bint al-Hasan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Fatimah_bint_al-Hasan property:father ?l . ?l rdf:type ontology:common_name }
[]
common name
Q182914
SYSTEM
Hasan ibn Ali
Q182914
(Q5437879,P22,c(Q502895))
action filter_type
action find
entity Q5437879
relation P22
type Q502895
[ANSWER] has a child named Fatimah bint al-Hasan
['Q5437879', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q5437879 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Hasan ibn Ali
Hasan ibn Ali has a child named Fatimah bint al-Hasan
Hasan ibn Ali
action filter_type
action find
entity Fatimah bint al-Hasan
relation father
type common name
['Fatimah bint al-Hasan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Fatimah_bint_al-Hasan property:father ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q182914
P20
Q56061
USER
Where did the expiration of that person occur ?
(Q182914,P20,c(Q56061))
action filter_type
action find
entity Q182914
relation P20
type Q56061
['Q182914', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q182914 property:P20 ?u }
Hasan ibn Ali
action filter_type
action find
entity Hasan ibn Ali
relation place of death
type administrative territorial entity
['Hasan ibn Ali', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Hasan_ibn_Ali property:place_of_death ?u }
[]
administrative territorial entity
Q35484
SYSTEM
Medina
Q35484
(Q182914,P20,c(Q56061))
action filter_type
action find
entity Q182914
relation P20
type Q56061
The expiration of that person occurred in [ANSWER]
['Q182914', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q182914 property:P20 ?u }
Medina
The expiration of that person occurred in Medina
Medina
action filter_type
action find
entity Hasan ibn Ali
relation place of death
type administrative territorial entity
['Hasan ibn Ali', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Hasan_ibn_Ali property:place_of_death ?u }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24027369
P532
Q56061 Q2235308
USER
How many ship types have greater number of administrative territories as their base harbour than Priscilla ?
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027369
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?r ) WHERE { ?e property:P532 ?n . ?e rdf:type ontology:Q2235308 . ?n rdf:type ontology:Q56061 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Q24027369 property:P532 ?f . ?f rdf:type ontology:Q2235308 } } . FILTER ( ?r > ?s ) }
Priscilla
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Priscilla
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?r ) WHERE { ?e property:port_of_registry ?n . ?e rdf:type ontology:ship_type . ?n rdf:type ontology:administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Priscilla property:port_of_registry ?f . ?f rdf:type ontology:ship_type } } . FILTER ( ?r > ?s ) }
[]
administrative territorial entity ship type
SYSTEM
70
Q2992316 Q2301456 Q983141 Q133606 Q26988086 Q168474 Q300311 Q20489530 Q5338632 Q7499755 Q2124429 Q1293488 Q1017179 Q7120838 Q7393546 Q25173 Q14493958 Q18128240 Q664284 Q26988094 Q21196329 Q10659251 Q477173 Q130373 Q19608222 Q11707059 Q1026780 Q22342351 Q15662618 Q33209 Q1514518 Q2596850 Q16854668 Q1325547 Q761593 Q26883829 Q2124449 Q778649 Q3952367 Q11705702 Q24039469 Q751584 Q6930211 Q16629249 Q497065 Q3053251 Q468026 Q1439419 Q23579589 Q4686475 Q26987769 Q11891639 Q321007 Q6720006 Q741803 Q338340 Q7120888 Q215692 Q917188 Q18213370 Q1129910 Q2714360 Q16852551 Q1514126 Q18711004 Q1339472 Q3558075 Q192381 Q493616 Q35462
(c(Q2235308),P532,c(Q56061))
action count
action greater
action find_tuple_counts
relation P532
type Q2235308
type Q56061
action count
action filter_type
action find
entity Q24027369
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?r ) WHERE { ?e property:P532 ?n . ?e rdf:type ontology:Q2235308 . ?n rdf:type ontology:Q56061 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Q24027369 property:P532 ?f . ?f rdf:type ontology:Q2235308 } } . FILTER ( ?r > ?s ) }
HSC Condor Rapide MS Viking XPRS MY Sam Simon MS Star Meteora MV Arctic Sunrise A MS Harmony of the Seas Edith Mærsk Shoalway RMS Samaria MV Esperanza SS Burutu PS Empress Queen SS Empire Airman RMS Titanic Mærsk Mc-Kinney Møller MS Quantum of the Seas Pioneering Spirit Emma Victory SS Argentina S/S Drottningholm Emma Mærsk Admiral Makarov HSC Condor Liberation MS Arrow SS California Modern Express Djurgården 8 Mary Celeste Sapphire Princess MS Azura Mein Schiff 4 MT Mastera CMA CGM Marco Polo VOS Sympathy RMS St Helena Eclipse MS Norman Atlantic MV Ascension HSC Highspeed 5 MS Express Samina msy Wind Song Varnek (ship, 1974-2010) MV Baltic Ace Empire Sandy SS Maxim Gorkiy Vitus Bering MV Christinaki Adventure British Explorer SS Coccolita RMS Olympic MV Royal Daffodil RMS Mauretania MV Boudicca SS Prince of Wales HMHS Britannic MS Brilliance of the Seas Anthem of the Seas SS Potsdam MS Empress MS Epsilon MS Marco Polo MV Hoegh Osaka RMS Empress of Ireland Vieux Crabe MS Oasis of the Seas Royal Clipper RMS Aquitania
70
action count
action greater
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
action count
action filter_type
action find
entity Priscilla
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?y ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?n ) AS ?r ) WHERE { ?e property:port_of_registry ?n . ?e rdf:type ontology:ship_type . ?n rdf:type ontology:administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) WHERE { resource:Priscilla property:port_of_registry ?f . ?f rdf:type ontology:ship_type } } . FILTER ( ?r > ?s ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q182914
P1196
Q1914636
USER
What situation did Hasan ibn Ali die in ?
(Q182914,P1196,c(Q1914636))
action filter_type
action find
entity Q182914
relation P1196
type Q1914636
['Q182914', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?b WHERE { resource:Q182914 property:P1196 ?b . ?b rdf:type ontology:Q1914636 }
Hasan ibn Ali
action filter_type
action find
entity Hasan ibn Ali
relation manner of death
type activity
['Hasan ibn Ali', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?b WHERE { resource:Hasan_ibn_Ali property:manner_of_death ?b . ?b rdf:type ontology:activity }
[]
activity
Q149086
SYSTEM
homicide
Q149086
(Q182914,P1196,c(Q1914636))
action filter_type
action find
entity Q182914
relation P1196
type Q1914636
Hasan ibn Ali died in [ANSWER]
['Q182914', 'P1196', {'concept': 'Q1914636'}]
SELECT DISTINCT ?b WHERE { resource:Q182914 property:P1196 ?b . ?b rdf:type ontology:Q1914636 }
homicide
Hasan ibn Ali died in homicide
homicide
action filter_type
action find
entity Hasan ibn Ali
relation manner of death
type activity
['Hasan ibn Ali', 'manner of death', {'concept': 'activity'}]
SELECT DISTINCT ?b WHERE { resource:Hasan_ibn_Ali property:manner_of_death ?b . ?b rdf:type ontology:activity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q182914
P25
Q502895
USER
Who was the mom of Hasan ibn Ali ?
(Q182914,P25,c(Q502895))
action filter_type
action find
entity Q182914
relation P25
type Q502895
['Q182914', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q182914 property:P25 ?z . ?z rdf:type ontology:Q502895 }
Hasan ibn Ali
action filter_type
action find
entity Hasan ibn Ali
relation mother
type common name
['Hasan ibn Ali', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Hasan_ibn_Ali property:mother ?z . ?z rdf:type ontology:common_name }
[]
common name
Q180123
SYSTEM
Fatimah Zahra
Q180123
(Q182914,P25,c(Q502895))
action filter_type
action find
entity Q182914
relation P25
type Q502895
The mom of Hasan ibn Ali was named [ANSWER]
['Q182914', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q182914 property:P25 ?z . ?z rdf:type ontology:Q502895 }
Fatimah Zahra
The mom of Hasan ibn Ali was named Fatimah Zahra
Fatimah Zahra
action filter_type
action find
entity Hasan ibn Ali
relation mother
type common name
['Hasan ibn Ali', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Hasan_ibn_Ali property:mother ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q180123
P9
Q502895
USER
Whose sister are that one ?
(c(Q502895),P9,Q180123)
action filter_type
action find_reverse
entity Q180123
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q180123']
SELECT DISTINCT ?w WHERE { ?w property:P9 resource:Q180123 . ?w rdf:type ontology:Q502895 }
Fatimah Zahra
action filter_type
action find_reverse
entity Fatimah Zahra
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Fatimah Zahra']
SELECT DISTINCT ?w WHERE { ?w property:sister resource:Fatimah_Zahra . ?w rdf:type ontology:common_name }
[]
common name
Q2300129 Q784324 Q1164707
SYSTEM
Ruqayyah bint Muhammad, Qasim ibn Muhammad, Zainab bint Muhammad
Q2300129 Q784324 Q2401633 Q2426845 Q3505301 Q1164707
(c(Q502895),P9,Q180123)
action filter_type
action find_reverse
entity Q180123
relation P9
type Q502895
[ANSWERS] are that one
[{'concept': 'Q502895'}, 'P9', 'Q180123']
SELECT DISTINCT ?w WHERE { ?w property:P9 resource:Q180123 . ?w rdf:type ontology:Q502895 }
Ruqayyah bint Muhammad Qasim ibn Muhammad Abd-Allah ibn Muhammad Umm Kulthum bint Muhammad Ibrahim ibn Muhammad Zainab bint Muhammad
Ruqayyah bint Muhammad, Qasim ibn Muhammad and Zainab bint Muhammad are that one
Ruqayyah bint Muhammad Qasim ibn Muhammad Zainab bint Muhammad
action filter_type
action find_reverse
entity Fatimah Zahra
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Fatimah Zahra']
SELECT DISTINCT ?w WHERE { ?w property:sister resource:Fatimah_Zahra . ?w rdf:type ontology:common_name }
[]