Simple Question (Direct)
Simple Question
Q20712938
P27
Q15617994
USER
Which administrative territory is Alexander Thom an inhabitant of ?
(Q20712938,P27,c(Q15617994))
action filter_type
action find
entity Q20712938
relation P27
type Q15617994
['Q20712938', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q20712938 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
Alexander Thom
action filter_type
action find
entity Alexander Thom
relation country of citizenship
type designation for an administrative territorial entity
['Alexander Thom', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Alexander_Thom property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q20712938,P27,c(Q15617994))
action filter_type
action find
entity Q20712938
relation P27
type Q15617994
[ANSWER] is Alexander Thom an inhabitant of
['Q20712938', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q20712938 property:P27 ?s . ?s rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Alexander Thom an inhabitant of
United Kingdom
action filter_type
action find
entity Alexander Thom
relation country of citizenship
type designation for an administrative territorial entity
['Alexander Thom', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Alexander_Thom property:country_of_citizenship ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20712938
P641
Q349
USER
What did Alexander Thom participate in ?
(Q20712938,P641,c(Q349))
action filter_type
action find
entity Q20712938
relation P641
type Q349
['Q20712938', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q20712938 property:P641 ?n }
Alexander Thom
action filter_type
action find
entity Alexander Thom
relation sport
type sport
['Alexander Thom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:Alexander_Thom property:sport ?n }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q20712938,P641,c(Q349))
action filter_type
action find
entity Q20712938
relation P641
type Q349
Did FIFA [ANSWER]
['Q20712938', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q349 . resource:Q20712938 property:P641 ?n }
association football
Did FIFA association football
association football
action filter_type
action find
entity Alexander Thom
relation sport
type sport
['Alexander Thom', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:sport . resource:Alexander_Thom property:sport ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q20712938
P20
Q56061
USER
Where did Alexander Thom die ?
(Q20712938,P20,c(Q56061))
action filter_type
action find
entity Q20712938
relation P20
type Q56061
['Q20712938', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q20712938 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Alexander Thom
action filter_type
action find
entity Alexander Thom
relation place of death
type administrative territorial entity
['Alexander Thom', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Alexander_Thom property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2064938
SYSTEM
Old Kilpatrick
Q2064938
(Q20712938,P20,c(Q56061))
action filter_type
action find
entity Q20712938
relation P20
type Q56061
Alexander did [ANSWER]
['Q20712938', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q20712938 property:P20 ?s . ?s rdf:type ontology:Q56061 }
Old Kilpatrick
Alexander did Old Kilpatrick
Old Kilpatrick
action filter_type
action find
entity Alexander Thom
relation place of death
type administrative territorial entity
['Alexander Thom', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Alexander_Thom property:place_of_death ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q145
P137
Q15056995
USER
Which aircraft models can be described as service operator of United Kingdom ?
(c(Q15056995),P137,Q145)
action filter_type
action find_reverse
entity Q145
relation P137
type Q15056995
[{'concept': 'Q15056995'}, 'P137', 'Q145']
SELECT DISTINCT ?o WHERE { ?o property:P137 resource:Q145 . ?o rdf:type ontology:Q15056995 }
United Kingdom
action filter_type
action find_reverse
entity United Kingdom
relation operator
type aircraft model
[{'concept': 'aircraft model'}, 'operator', 'United Kingdom']
SELECT DISTINCT ?o WHERE { ?o property:operator resource:United_Kingdom . ?o rdf:type ontology:aircraft_model }
[]
aircraft model
Q18117224 Q17501721 Q17501685
SYSTEM
Fortress III, Typhoon T1, Typhoon DA
Q18117224 Q17501721 Q17501685
(c(Q15056995),P137,Q145)
action filter_type
action find_reverse
entity Q145
relation P137
type Q15056995
[ANSWERS] can be described as service operator of United Kingdom
[{'concept': 'Q15056995'}, 'P137', 'Q145']
SELECT DISTINCT ?o WHERE { ?o property:P137 resource:Q145 . ?o rdf:type ontology:Q15056995 }
Fortress III Typhoon T1 Typhoon DA
Fortress III, Typhoon T1 and Typhoon DA can be described as service operator of United Kingdom
Fortress III Typhoon T1 Typhoon DA
action filter_type
action find_reverse
entity United Kingdom
relation operator
type aircraft model
[{'concept': 'aircraft model'}, 'operator', 'United Kingdom']
SELECT DISTINCT ?o WHERE { ?o property:operator resource:United_Kingdom . ?o rdf:type ontology:aircraft_model }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q18117224 Q17501721 Q17501685
P137
Q15617994
USER
Which administrative territories operate Fortress III, Typhoon T1 and Typhoon DA ?
(Q18117224,P137,c(Q15617994)) (Q17501721,P137,c(Q15617994)) (Q17501685,P137,c(Q15617994))
action union
action filter_type
action find
entity Q18117224
relation P137
type Q15617994
action filter_type
action find
entity Q17501721
relation P137
type Q15617994
action filter_type
action find
entity Q17501685
relation P137
type Q15617994
['Q18117224', 'P137', {'concept': 'Q15617994'}] ['Q17501721', 'P137', {'concept': 'Q15617994'}] ['Q17501685', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { resource:Q18117224 property:P137 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q17501721 property:P137 ?v . ?v rdf:type ontology:Q15617994 } }
Fortress III Typhoon T1 Typhoon DA
action union
action filter_type
action find
entity Fortress III
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Typhoon T1
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Typhoon DA
relation operator
type designation for an administrative territorial entity
['Fortress III', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Typhoon T1', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Typhoon DA', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:Fortress_III property:operator ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Typhoon_T1 property:operator ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q38 Q145 Q145
SYSTEM
Italy for 1st, United Kingdom for 2nd, 3rd
Q145 Q145 Q29 Q38 Q145
(Q18117224,P137,c(Q15617994)) (Q17501721,P137,c(Q15617994)) (Q17501685,P137,c(Q15617994))
action union
action filter_type
action find
entity Q18117224
relation P137
type Q15617994
action filter_type
action find
entity Q17501721
relation P137
type Q15617994
action filter_type
action find
entity Q17501685
relation P137
type Q15617994
[ANSWERS]
['Q18117224', 'P137', {'concept': 'Q15617994'}] ['Q17501721', 'P137', {'concept': 'Q15617994'}] ['Q17501685', 'P137', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { resource:Q18117224 property:P137 ?v . ?v rdf:type ontology:Q15617994 } UNION { resource:Q17501721 property:P137 ?v . ?v rdf:type ontology:Q15617994 } }
United Kingdom United Kingdom Spain Italy United Kingdom
Italy, United Kingdom and United Kingdom operate Fortress III, Typhoon T1 and Typhoon DA
Italy United Kingdom United Kingdom
action union
action filter_type
action find
entity Fortress III
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Typhoon T1
relation operator
type designation for an administrative territorial entity
action filter_type
action find
entity Typhoon DA
relation operator
type designation for an administrative territorial entity
['Fortress III', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Typhoon T1', 'operator', {'concept': 'designation for an administrative territorial entity'}] ['Typhoon DA', 'operator', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { { resource:Fortress_III property:operator ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Typhoon_T1 property:operator ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q18117224
P144
Q2424752
USER
Where is that aircraft model adapted from ?
(Q18117224,P144,c(Q2424752))
action filter_type
action find
entity Q18117224
relation P144
type Q2424752
['Q18117224', 'P144', {'concept': 'Q2424752'}]
SELECT DISTINCT ?i WHERE { resource:Q18117224 property:P144 ?i . ?i rdf:type ontology:Q2424752 }
Fortress III
action filter_type
action find
entity Fortress III
relation based on
type product
['Fortress III', 'based on', {'concept': 'product'}]
SELECT DISTINCT ?i WHERE { resource:Fortress_III property:based_on ?i . ?i rdf:type ontology:product }
[]
product
Clarification for simple ques.
Q18117224
SYSTEM
Did you mean Fortress III ?
Q38 Q145 Q145
(Q38,P144,c(Q2424752)) (Q145,P144,c(Q2424752)) (Q145,P144,c(Q2424752))
[ANSWER]
['Q38', 'P144', {'concept': 'Q2424752'}] ['Q145', 'P144', {'concept': 'Q2424752'}] ['Q145', 'P144', {'concept': 'Q2424752'}]
SELECT DISTINCT ?i WHERE { resource:Q18117224 property:P144 ?i . ?i rdf:type ontology:Q2424752 }
Italy United Kingdom United Kingdom
Did you mean Fortress III ?
Fortress III
['Italy', 'based on', {'concept': 'product'}] ['United Kingdom', 'based on', {'concept': 'product'}] ['United Kingdom', 'based on', {'concept': 'product'}]
SELECT DISTINCT ?i WHERE { resource:Fortress_III property:based_on ?i . ?i rdf:type ontology:product }
[]
Simple Question (Coreferenced)
USER
Yes
(Q18117224,P144,c(Q2424752))
['Q18117224', 'P144', {'concept': 'Q2424752'}]
['Fortress III', 'based on', {'concept': 'product'}]
[]
Q18117167
SYSTEM
B-17G Flying Fortress
Q18117167
(Q18117224,P144,c(Q2424752))
action filter_type
action find
entity Q18117224
relation P144
type Q2424752
That aircraft model is adapted from the [ANSWER]
['Q18117224', 'P144', {'concept': 'Q2424752'}]
SELECT DISTINCT ?i WHERE { resource:Q18117224 property:P144 ?i . ?i rdf:type ontology:Q2424752 }
B-17G Flying Fortress
That aircraft model is adapted from the B-17G Flying Fortress
B-17G Flying Fortress
action filter_type
action find
entity Fortress III
relation based on
type product
['Fortress III', 'based on', {'concept': 'product'}]
SELECT DISTINCT ?i WHERE { resource:Fortress_III property:based_on ?i . ?i rdf:type ontology:product }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P85
Q7725634 Q484692 Q15617994
USER
Which administrative territories have max number of literary works or hymns as their national anthem ?
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?i . VALUES ( ?i ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?z ) WHERE { { ?j property:P85 ?p . ?p rdf:type ontology:Q7725634 . ?j rdf:type ontology:Q15617994 } UNION { ?j property:P85 ?p . ?j rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q484692 } } GROUP BY ?j } . FILTER ( ?z = ?y ) }
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?i . VALUES ( ?i ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?z ) WHERE { { ?j property:anthem ?p . ?p rdf:type ontology:literary_work . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:anthem ?p . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:hymn } } GROUP BY ?j } . FILTER ( ?z = ?y ) }
[]
literary work hymn designation for an administrative territorial entity
Q159 Q242 Q1045
SYSTEM
Russia, Belize, Somalia
Q159 Q242 Q1045
(c(Q15617994),P85,c(Q7725634)|c(Q484692))
action argmax
action union
action find_tuple_counts
relation P85
type Q15617994
type Q7725634
action find_tuple_counts
relation P85
type Q15617994
type Q484692
[ANSWERS] have max number of literary works or hymns as their national anthem
[{'concept': 'Q15617994'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?i . VALUES ( ?i ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?z ) WHERE { { ?j property:P85 ?p . ?p rdf:type ontology:Q7725634 . ?j rdf:type ontology:Q15617994 } UNION { ?j property:P85 ?p . ?j rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q484692 } } GROUP BY ?j } . FILTER ( ?z = ?y ) }
Russia Belize Somalia
Russia, Belize and Somalia have max number of literary works or hymns as their national anthem
Russia Belize Somalia
action argmax
action union
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type literary work
action find_tuple_counts
relation anthem
type designation for an administrative territorial entity
type hymn
[{'concept': 'designation for an administrative territorial entity'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?y ) { SELECT DISTINCT ?t ( COUNT ( ?f ) AS ?d ) WHERE { ?f rdf:type ?i . VALUES ( ?i ) { ( ontology:literary_work ) ( ontology:hymn ) } } GROUP BY ?t } } . { SELECT DISTINCT ?j ( COUNT ( ?p ) AS ?z ) WHERE { { ?j property:anthem ?p . ?p rdf:type ontology:literary_work . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?j property:anthem ?p . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:hymn } } GROUP BY ?j } . FILTER ( ?z = ?y ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q145 Q244165
P35
Q502895
USER
How many people are elected as the head of state of United Kingdom or Nagorno-Karabakh Republic ?
(Q145,P35,c(Q502895)) (Q244165,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q145
relation P35
type Q502895
action filter_type
action find
entity Q244165
relation P35
type Q502895
['Q145', 'P35', {'concept': 'Q502895'}] ['Q244165', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?n property:P35 ?v . VALUES ( ?n ) { ( resource:Q145 ) ( resource:Q244165 ) } }
United Kingdom Nagorno-Karabakh Republic
action count
action union
action filter_type
action find
entity United Kingdom
relation head of state
type common name
action filter_type
action find
entity Nagorno-Karabakh Republic
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}] ['Nagorno-Karabakh Republic', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?n property:head_of_state ?v . VALUES ( ?n ) { ( resource:United_Kingdom ) ( resource:Nagorno-Karabakh_Republic ) } }
[]
common name
SYSTEM
8
Q590227 Q360462 Q511888 Q269412 Q613051 Q9682 Q541507 Q280856
(Q145,P35,c(Q502895)) (Q244165,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q145
relation P35
type Q502895
action filter_type
action find
entity Q244165
relation P35
type Q502895
[ANSWER]
['Q145', 'P35', {'concept': 'Q502895'}] ['Q244165', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?n property:P35 ?v . VALUES ( ?n ) { ( resource:Q145 ) ( resource:Q244165 ) } }
Edward VIII Bako Sahakyan Leonard Petrosyan George V Robert Kocharyan Elizabeth II Arkadi Ghukasyan George VI
8
action count
action union
action filter_type
action find
entity United Kingdom
relation head of state
type common name
action filter_type
action find
entity Nagorno-Karabakh Republic
relation head of state
type common name
['United Kingdom', 'head of state', {'concept': 'common name'}] ['Nagorno-Karabakh Republic', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?k ) WHERE { ?n property:head_of_state ?v . VALUES ( ?n ) { ( resource:United_Kingdom ) ( resource:Nagorno-Karabakh_Republic ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q485186
P559
Q56061 Q83620 Q628179
USER
Which administrative territories are the endpoints for more number of thoroughfares or trails than Key West ?
(c(Q83620)|c(Q628179),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q485186
relation P559
type Q83620
type Q628179
[[{'concept': 'Q83620'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?o WHERE { VALUES ( ?l ) { ( ontology:Q628179 ) ( ontology:Q83620 ) } . ?h rdf:type ?l } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P559 resource:Q485186 . { { ?e rdf:type ontology:Q83620 } UNION { ?e rdf:type ontology:Q628179 } } } } . FILTER ( ?f > ?n ) }
Key West
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Key West
relation terminus
type thoroughfare
type trail
[[{'concept': 'thoroughfare'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?o WHERE { VALUES ( ?l ) { ( ontology:trail ) ( ontology:thoroughfare ) } . ?h rdf:type ?l } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:terminus resource:Key_West . { { ?e rdf:type ontology:thoroughfare } UNION { ?e rdf:type ontology:trail } } } } . FILTER ( ?f > ?n ) }
[]
administrative territorial entity thoroughfare trail
Q12892 Q172157 Q3001
SYSTEM
Antwerp, Winchester, Paramaribo
Q172157 Q3001 Q1318695 Q12892
(c(Q83620)|c(Q628179),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q485186
relation P559
type Q83620
type Q628179
[ANSWERS] are the endpoints for more number of thoroughfares or trails than Key West
[[{'concept': 'Q83620'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?o WHERE { VALUES ( ?l ) { ( ontology:Q628179 ) ( ontology:Q83620 ) } . ?h rdf:type ?l } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P559 resource:Q485186 . { { ?e rdf:type ontology:Q83620 } UNION { ?e rdf:type ontology:Q628179 } } } } . FILTER ( ?f > ?n ) }
Winchester Paramaribo Apoera Antwerp
Antwerp, Winchester and Paramaribo are the endpoints for more number of thoroughfares or trails than Key West
Antwerp Winchester Paramaribo
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Key West
relation terminus
type thoroughfare
type trail
[[{'concept': 'thoroughfare'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) ?o WHERE { VALUES ( ?l ) { ( ontology:trail ) ( ontology:thoroughfare ) } . ?h rdf:type ?l } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:terminus resource:Key_West . { { ?e rdf:type ontology:thoroughfare } UNION { ?e rdf:type ontology:trail } } } } . FILTER ( ?f > ?n ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q727
P559
Q56061 Q83620 Q628179
USER
And how about Amsterdam?
(c(Q83620)|c(Q628179),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q727
relation P559
type Q83620
type Q628179
[[{'concept': 'Q83620'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?e ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } . ?j rdf:type ?e } GROUP BY ?h } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { VALUES ( ?f ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } . ?t rdf:type ?f } . ?t property:P559 resource:Q727 } } }
Amsterdam
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Amsterdam
relation terminus
type thoroughfare
type trail
[[{'concept': 'thoroughfare'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?e ) { ( ontology:thoroughfare ) ( ontology:trail ) } . ?j rdf:type ?e } GROUP BY ?h } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { VALUES ( ?f ) { ( ontology:thoroughfare ) ( ontology:trail ) } . ?t rdf:type ?f } . ?t property:terminus resource:Amsterdam } } }
[]
administrative territorial entity thoroughfare trail
Q12892 Q172157 Q3001
SYSTEM
Antwerp, Winchester, Paramaribo
Q172157 Q3001 Q1318695 Q12892
(c(Q83620)|c(Q628179),P559,c(Q56061))
action greater
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q727
relation P559
type Q83620
type Q628179
[ANSWERS]
[[{'concept': 'Q83620'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?e ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } . ?j rdf:type ?e } GROUP BY ?h } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { VALUES ( ?f ) { ( ontology:Q83620 ) ( ontology:Q628179 ) } . ?t rdf:type ?f } . ?t property:P559 resource:Q727 } } }
Winchester Paramaribo Apoera Antwerp
Antwerp Winchester Paramaribo
action greater
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Amsterdam
relation terminus
type thoroughfare
type trail
[[{'concept': 'thoroughfare'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?b ) WHERE { VALUES ( ?e ) { ( ontology:thoroughfare ) ( ontology:trail ) } . ?j rdf:type ?e } GROUP BY ?h } . FILTER ( ?b > ?o ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?o ) WHERE { { VALUES ( ?f ) { ( ontology:thoroughfare ) ( ontology:trail ) } . ?t rdf:type ?f } . ?t property:terminus resource:Amsterdam } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3001
P206
Q355304
USER
Which watercourse is located in the neighbourhood of that administrative territory ?
(Q3001,P206,c(Q355304))
action filter_type
action find
entity Q3001
relation P206
type Q355304
['Q3001', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q355304 . resource:Q3001 property:P206 ?m }
Paramaribo
action filter_type
action find
entity Paramaribo
relation located next to body of water
type watercourse
['Paramaribo', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:watercourse . resource:Paramaribo property:located_next_to_body_of_water ?m }
[]
watercourse
Clarification for simple ques.
Q3001
SYSTEM
Did you mean Paramaribo ?
Q12892 Q172157 Q3001
(Q12892,P206,c(Q355304)) (Q172157,P206,c(Q355304)) (Q3001,P206,c(Q355304))
[ANSWER]
['Q12892', 'P206', {'concept': 'Q355304'}] ['Q172157', 'P206', {'concept': 'Q355304'}] ['Q3001', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q355304 . resource:Q3001 property:P206 ?m }
Antwerp Winchester Paramaribo
Did you mean Paramaribo ?
Paramaribo
['Antwerp', 'located next to body of water', {'concept': 'watercourse'}] ['Winchester', 'located next to body of water', {'concept': 'watercourse'}] ['Paramaribo', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:watercourse . resource:Paramaribo property:located_next_to_body_of_water ?m }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3001,P206,c(Q355304))
['Q3001', 'P206', {'concept': 'Q355304'}]
['Paramaribo', 'located next to body of water', {'concept': 'watercourse'}]
[]
Q635545
SYSTEM
Suriname River
Q635545
(Q3001,P206,c(Q355304))
action filter_type
action find
entity Q3001
relation P206
type Q355304
[ANSWER] is located in the neighbourhood of that administrative territory
['Q3001', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q355304 . resource:Q3001 property:P206 ?m }
Suriname River
Suriname River is located in the neighbourhood of that administrative territory
Suriname River
action filter_type
action find
entity Paramaribo
relation located next to body of water
type watercourse
['Paramaribo', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:watercourse . resource:Paramaribo property:located_next_to_body_of_water ?m }
[]