Simple Question (Direct)
Simple Question
Q15293167
P106
Q12737077
USER
What are the job of Lewis Charles ?
(Q15293167,P106,c(Q12737077))
action filter_type
action find
entity Q15293167
relation P106
type Q12737077
['Q15293167', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q15293167 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Lewis Charles
action filter_type
action find
entity Lewis Charles
relation occupation
type occupation
['Lewis Charles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Lewis_Charles property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q10798782 Q33999
SYSTEM
television actor, actor
Q10798782 Q33999
(Q15293167,P106,c(Q12737077))
action filter_type
action find
entity Q15293167
relation P106
type Q12737077
The job of Lewis Charles are a [ANSWERS]
['Q15293167', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q15293167 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
television actor actor
The job of Lewis Charles are a television actor and actor
television actor actor
action filter_type
action find
entity Lewis Charles
relation occupation
type occupation
['Lewis Charles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Lewis_Charles property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15293167
P734
Q82799
USER
Who has the surname that person ?
(Q10798782,P734,c(Q82799)) (Q33999,P734,c(Q82799))
action filter_type
action find
entity Q15293167
relation P734
type Q82799
['Q10798782', 'P734', {'concept': 'Q82799'}] ['Q33999', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q15293167 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Lewis Charles
action filter_type
action find
entity Lewis Charles
relation family name
type name
['television actor', 'family name', {'concept': 'name'}] ['actor', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Lewis_Charles property:family_name ?s . ?s rdf:type ontology:name }
[]
name
Q16865501
SYSTEM
Charles
Q16865501
(Q10798782,P734,c(Q82799)) (Q33999,P734,c(Q82799))
action filter_type
action find
entity Q15293167
relation P734
type Q82799
[ANSWER] has the surname that person
['Q10798782', 'P734', {'concept': 'Q82799'}] ['Q33999', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?s WHERE { resource:Q15293167 property:P734 ?s . ?s rdf:type ontology:Q82799 }
Charles
Charles has the surname that person
Charles
action filter_type
action find
entity Lewis Charles
relation family name
type name
['television actor', 'family name', {'concept': 'name'}] ['actor', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?s WHERE { resource:Lewis_Charles property:family_name ?s . ?s rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15293167
P20
Q56061
USER
Where did the demise of that person occur ?
(Q16865501,P20,c(Q56061))
action filter_type
action find
entity Q15293167
relation P20
type Q56061
['Q16865501', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q15293167 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Lewis Charles
action filter_type
action find
entity Lewis Charles
relation place of death
type administrative territorial entity
['Charles', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Lewis_Charles property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q16865501,P20,c(Q56061))
action filter_type
action find
entity Q15293167
relation P20
type Q56061
The demise of that person occurred in [ANSWER]
['Q16865501', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { resource:Q15293167 property:P20 ?e . ?e rdf:type ontology:Q56061 }
Los Angeles
The demise of that person occurred in Los Angeles
Los Angeles
action filter_type
action find
entity Lewis Charles
relation place of death
type administrative territorial entity
['Charles', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { resource:Lewis_Charles property:place_of_death ?e . ?e rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q24026916
P532
Q56061 Q2235308
USER
How many ship types have their base port as more number of administrative territories than Velocity ?
(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 Q24026916
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Q24026916 property:P532 ?f . ?f rdf:type ontology:Q2235308 } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?i ) WHERE { ?n rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q56061 . ?n property:P532 ?j } GROUP BY ?n } }
Velocity
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 Velocity
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Velocity property:port_of_registry ?f . ?f rdf:type ontology:ship_type } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?i ) WHERE { ?n rdf:type ontology:ship_type . ?j rdf:type ontology:administrative_territorial_entity . ?n property:port_of_registry ?j } GROUP BY ?n } }
[]
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 Q24026916
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Q24026916 property:P532 ?f . ?f rdf:type ontology:Q2235308 } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?i ) WHERE { ?n rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q56061 . ?n property:P532 ?j } GROUP BY ?n } }
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 Velocity
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Velocity property:port_of_registry ?f . ?f rdf:type ontology:ship_type } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?n ( COUNT ( ?j ) AS ?i ) WHERE { ?n rdf:type ontology:ship_type . ?j rdf:type ontology:administrative_territorial_entity . ?n property:port_of_registry ?j } GROUP BY ?n } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q24027191
P532
Q56061 Q2235308
USER
And what about Anne Catherine?
(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 Q24027191
relation P532
type Q2235308
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?m ) WHERE { ?o property:P532 ?j . ?o rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q56061 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q24027191 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?m > ?a ) }
Anne Catherine
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 Anne Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?m ) WHERE { ?o property:port_of_registry ?j . ?o rdf:type ontology:ship_type . ?j rdf:type ontology:administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Anne_Catherine property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?m > ?a ) }
[]
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 Q24027191
relation P532
type Q2235308
[ANSWER]
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?m ) WHERE { ?o property:P532 ?j . ?o rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q56061 } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Q24027191 property:P532 ?q . ?q rdf:type ontology:Q2235308 } } . FILTER ( ?m > ?a ) }
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 Anne Catherine
relation port of registry
type ship type
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ?o ( COUNT ( ?j ) AS ?m ) WHERE { ?o property:port_of_registry ?j . ?o rdf:type ontology:ship_type . ?j rdf:type ontology:administrative_territorial_entity } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { resource:Anne_Catherine property:port_of_registry ?q . ?q rdf:type ontology:ship_type } } . FILTER ( ?m > ?a ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q23773623
P138
Q56061 Q502895 Q82799
USER
How many names come from greater number of administrative territories and people than Lamour ?
(c(Q82799),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q502895
action count
action filter_multi_types
action find
entity Q23773623
relation P138
type Q56061
type Q502895
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?m WHERE { { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q502895 } UNION { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q56061 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Q23773623 property:P138 ?a . { { ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q56061 } } } } . FILTER ( ?l > ?j ) }
Lamour
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type common name
action count
action filter_multi_types
action find
entity Lamour
relation named after
type administrative territorial entity
type common name
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?m WHERE { { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:common_name } UNION { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Lamour property:named_after ?a . { { ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?l > ?j ) }
[]
administrative territorial entity common name name
SYSTEM
11
Q18198499 Q19558843 Q23688105 Q1746111 Q23885849 Q21161805 Q807882 Q688520 Q22922124 Q16877784 Q23301520
(c(Q82799),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q502895
action count
action filter_multi_types
action find
entity Q23773623
relation P138
type Q56061
type Q502895
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?m WHERE { { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q502895 } UNION { ?m property:P138 ?b . ?m rdf:type ontology:Q82799 . ?b rdf:type ontology:Q56061 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Q23773623 property:P138 ?a . { { ?a rdf:type ontology:Q502895 } UNION { ?a rdf:type ontology:Q56061 } } } } . FILTER ( ?l > ?j ) }
Elizur Pseudo-Lucian de Bragança Michael Gregorio Achaz Cain Barbus Müller Arminia von Mecklenburg-Schwerin Napoli Aonchotheca moraveci
11
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type common name
action count
action filter_multi_types
action find
entity Lamour
relation named after
type administrative territorial entity
type common name
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?u ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?l ) ?m WHERE { { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:common_name } UNION { ?m property:named_after ?b . ?m rdf:type ontology:name . ?b rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?j ) WHERE { resource:Lamour property:named_after ?a . { { ?a rdf:type ontology:common_name } UNION { ?a rdf:type ontology:administrative_territorial_entity } } } } . FILTER ( ?l > ?j ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q16871796
P138
Q56061 Q502895 Q82799
USER
And also tell me about Lancaster?
(c(Q82799),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q502895
action count
action filter_multi_types
action find
entity Q16871796
relation P138
type Q56061
type Q502895
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q502895 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Q16871796 property:P138 ?c . { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q502895 } } } } . FILTER ( ?u > ?f ) }
Lancaster
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type common name
action count
action filter_multi_types
action find
entity Lancaster
relation named after
type administrative territorial entity
type common name
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:common_name ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Lancaster property:named_after ?c . { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:common_name } } } } . FILTER ( ?u > ?f ) }
[]
administrative territorial entity common name name
SYSTEM
11
Q18198499 Q19558843 Q23688105 Q1746111 Q23885849 Q21161805 Q807882 Q688520 Q22922124 Q16877784 Q23301520
(c(Q82799),P138,c(Q56061)|c(Q502895))
action count
action greater
action union
action find_tuple_counts
relation P138
type Q82799
type Q56061
action find_tuple_counts
relation P138
type Q82799
type Q502895
action count
action filter_multi_types
action find
entity Q16871796
relation P138
type Q56061
type Q502895
[ANSWER]
[{'concept': 'Q82799'}, 'P138', [{'concept': 'Q56061'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:Q56061 ) ( ontology:Q502895 ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Q16871796 property:P138 ?c . { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q502895 } } } } . FILTER ( ?u > ?f ) }
Elizur Pseudo-Lucian de Bragança Michael Gregorio Achaz Cain Barbus Müller Arminia von Mecklenburg-Schwerin Napoli Aonchotheca moraveci
11
action count
action greater
action union
action find_tuple_counts
relation named after
type name
type administrative territorial entity
action find_tuple_counts
relation named after
type name
type common name
action count
action filter_multi_types
action find
entity Lancaster
relation named after
type administrative territorial entity
type common name
[{'concept': 'name'}, 'named after', [{'concept': 'administrative territorial entity'}, {'concept': 'common name'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?e ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?h . VALUES ( ?h ) { ( ontology:administrative_territorial_entity ) ( ontology:common_name ) } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Lancaster property:named_after ?c . { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:common_name } } } } . FILTER ( ?u > ?f ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q65
P190
Q1048835
USER
Which political territories are sister towns of Los Angeles ?
(Q65,P190,c(Q1048835))
action filter_type
action find
entity Q65
relation P190
type Q1048835
['Q65', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q65 property:P190 ?h . ?h rdf:type ontology:Q1048835 }
Los Angeles
action filter_type
action find
entity Los Angeles
relation sister city
type political territorial entity
['Los Angeles', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Los_Angeles property:sister_city ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16572 Q36947
SYSTEM
Guangzhou, Salvador
Q16572 Q36947
(Q65,P190,c(Q1048835))
action filter_type
action find
entity Q65
relation P190
type Q1048835
[ANSWERS] are sister towns of Los Angeles
['Q65', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q65 property:P190 ?h . ?h rdf:type ontology:Q1048835 }
Guangzhou Salvador
Guangzhou and Salvador are sister towns of Los Angeles
Guangzhou Salvador
action filter_type
action find
entity Los Angeles
relation sister city
type political territorial entity
['Los Angeles', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Los_Angeles property:sister_city ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q36433
Q1048835
USER
And also tell me about Porto?
(Q36433,P190,c(Q1048835))
action filter_type
action find
entity Q36433
relation P190
type Q1048835
['Q36433', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q36433 property:P190 ?p . ?p rdf:type ontology:Q1048835 }
Porto
action filter_type
action find
entity Porto
relation sister city
type political territorial entity
['Porto', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Porto property:sister_city ?p . ?p rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q48344 Q832246
SYSTEM
Recife, Duruelo de la Sierra
Q48344 Q832246
(Q36433,P190,c(Q1048835))
action filter_type
action find
entity Q36433
relation P190
type Q1048835
[ANSWERS]
['Q36433', 'P190', {'concept': 'Q1048835'}]
SELECT DISTINCT ?p WHERE { resource:Q36433 property:P190 ?p . ?p rdf:type ontology:Q1048835 }
Recife Duruelo de la Sierra
Recife Duruelo de la Sierra
action filter_type
action find
entity Porto
relation sister city
type political territorial entity
['Porto', 'sister city', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Porto property:sister_city ?p . ?p rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q5828295
P190
Q56061
USER
Are Ab Bari twin city of those political territories ?
(Q5828295,P190,Q48344) (Q5828295,P190,Q832246)
action is_in
entity prev_answer
action find
entity Q5828295
relation P190
['Q5828295', 'P190', 'Q48344'] ['Q5828295', 'P190', 'Q832246']
ASK WHERE { resource:Q5828295 property:P190 ?z . VALUES ( ?z ) { ( resource:Q48344 ) ( resource:Q832246 ) } }
Ab Bari
action is_in
entity prev_answer
action find
entity Ab Bari
relation sister city
['Ab Bari', 'sister city', 'Recife'] ['Ab Bari', 'sister city', 'Duruelo de la Sierra']
ASK WHERE { resource:Ab_Bari property:sister_city ?z . VALUES ( ?z ) { ( resource:Recife ) ( resource:Duruelo_de_la_Sierra ) } }
[]
administrative territorial entity
SYSTEM
NO
(Q5828295,P190,Q48344) (Q5828295,P190,Q832246)
action is_in
entity prev_answer
action find
entity Q5828295
relation P190
[ANSWER]
['Q5828295', 'P190', 'Q48344'] ['Q5828295', 'P190', 'Q832246']
ASK WHERE { resource:Q5828295 property:P190 ?z . VALUES ( ?z ) { ( resource:Q48344 ) ( resource:Q832246 ) } }
No
action is_in
entity prev_answer
action find
entity Ab Bari
relation sister city
['Ab Bari', 'sister city', 'Recife'] ['Ab Bari', 'sister city', 'Duruelo de la Sierra']
ASK WHERE { resource:Ab_Bari property:sister_city ?z . VALUES ( ?z ) { ( resource:Recife ) ( resource:Duruelo_de_la_Sierra ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q601142
P17
Q15617994
USER
Which administrative territory is Masvingo situated in ?
(Q601142,P17,c(Q15617994))
action filter_type
action find
entity Q601142
relation P17
type Q15617994
['Q601142', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q601142 property:P17 ?v }
Masvingo
action filter_type
action find
entity Masvingo
relation country
type designation for an administrative territorial entity
['Masvingo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Masvingo property:country ?v }
[]
designation for an administrative territorial entity
Q954
SYSTEM
Zimbabwe
Q954
(Q601142,P17,c(Q15617994))
action filter_type
action find
entity Q601142
relation P17
type Q15617994
Masvingo is situated in [ANSWER]
['Q601142', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q15617994 . resource:Q601142 property:P17 ?v }
Zimbabwe
Masvingo is situated in Zimbabwe
Zimbabwe
action filter_type
action find
entity Masvingo
relation country
type designation for an administrative territorial entity
['Masvingo', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Masvingo property:country ?v }
[]