Simple Question (Direct)
Simple Question
Q2908930
P27
Q15617994
USER
Which administrative territory is the country of citizenship of Nava Arad ?
(Q2908930,P27,c(Q15617994))
action filter_type
action find
entity Q2908930
relation P27
type Q15617994
['Q2908930', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q2908930 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Nava Arad
action filter_type
action find
entity Nava Arad
relation country of citizenship
type designation for an administrative territorial entity
['Nava Arad', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Nava_Arad property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q801
SYSTEM
Israel
Q801
(Q2908930,P27,c(Q15617994))
action filter_type
action find
entity Q2908930
relation P27
type Q15617994
[ANSWER]
['Q2908930', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q2908930 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Israel
Israel
action filter_type
action find
entity Nava Arad
relation country of citizenship
type designation for an administrative territorial entity
['Nava Arad', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Nava_Arad property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q801
P206
Q355304
USER
Which watercourse is situated close to that administrative territory ?
(Q801,P206,c(Q355304))
action filter_type
action find
entity Q801
relation P206
type Q355304
['Q801', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q355304 . resource:Q801 property:P206 ?d }
Israel
action filter_type
action find
entity Israel
relation located next to body of water
type watercourse
['Israel', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:watercourse . resource:Israel property:located_next_to_body_of_water ?d }
[]
watercourse
Q40059
SYSTEM
Jordan River
Q40059
(Q801,P206,c(Q355304))
action filter_type
action find
entity Q801
relation P206
type Q355304
[ANSWER]
['Q801', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q355304 . resource:Q801 property:P206 ?d }
Jordan River
Jordan River
action filter_type
action find
entity Israel
relation located next to body of water
type watercourse
['Israel', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:watercourse . resource:Israel property:located_next_to_body_of_water ?d }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2865
Q355304
USER
And also tell me about Kassel?
(Q2865,P206,c(Q355304))
action filter_type
action find
entity Q2865
relation P206
type Q355304
['Q2865', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { resource:Q2865 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Kassel
action filter_type
action find
entity Kassel
relation located next to body of water
type watercourse
['Kassel', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { resource:Kassel property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
watercourse
Q6434 Q402209 Q896097
SYSTEM
Fulda, Ahne, Losse
Q402209 Q896097 Q826497 Q895952 Q316834 Q1550842 Q6434 Q1498757 Q269772
(Q2865,P206,c(Q355304))
action filter_type
action find
entity Q2865
relation P206
type Q355304
[ANSWERS]
['Q2865', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?u WHERE { resource:Q2865 property:P206 ?u . ?u rdf:type ontology:Q355304 }
Ahne Losse Jungfernbach Nieste Drusel Grunnelbach Fulda Geilebach Wahlebach
Fulda Ahne Losse
action filter_type
action find
entity Kassel
relation located next to body of water
type watercourse
['Kassel', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?u WHERE { resource:Kassel property:located_next_to_body_of_water ?u . ?u rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q6434 Q402209 Q896097
P206
Q515
USER
Which cities are situated close to Fulda, Ahne and Losse ?
(c(Q515),P206,Q6434) (c(Q515),P206,Q402209) (c(Q515),P206,Q896097)
action union
action filter_type
action find_reverse
entity Q6434
relation P206
type Q515
action filter_type
action find_reverse
entity Q402209
relation P206
type Q515
action filter_type
action find_reverse
entity Q896097
relation P206
type Q515
[{'concept': 'Q515'}, 'P206', 'Q6434'] [{'concept': 'Q515'}, 'P206', 'Q402209'] [{'concept': 'Q515'}, 'P206', 'Q896097']
SELECT DISTINCT ?l WHERE { ?l property:P206 ?f . VALUES ( ?f ) { ( resource:Q6434 ) ( resource:Q402209 ) } }
Fulda Ahne Losse
action union
action filter_type
action find_reverse
entity Fulda
relation located next to body of water
type city
action filter_type
action find_reverse
entity Ahne
relation located next to body of water
type city
action filter_type
action find_reverse
entity Losse
relation located next to body of water
type city
[{'concept': 'city'}, 'located next to body of water', 'Fulda'] [{'concept': 'city'}, 'located next to body of water', 'Ahne'] [{'concept': 'city'}, 'located next to body of water', 'Losse']
SELECT DISTINCT ?l WHERE { ?l property:located_next_to_body_of_water ?f . VALUES ( ?f ) { ( resource:Fulda ) ( resource:Ahne ) } }
[]
city
Q2865
SYSTEM
Kassel
Q2865
(c(Q515),P206,Q6434) (c(Q515),P206,Q402209) (c(Q515),P206,Q896097)
action union
action filter_type
action find_reverse
entity Q6434
relation P206
type Q515
action filter_type
action find_reverse
entity Q402209
relation P206
type Q515
action filter_type
action find_reverse
entity Q896097
relation P206
type Q515
[ANSWER]
[{'concept': 'Q515'}, 'P206', 'Q6434'] [{'concept': 'Q515'}, 'P206', 'Q402209'] [{'concept': 'Q515'}, 'P206', 'Q896097']
SELECT DISTINCT ?l WHERE { ?l property:P206 ?f . VALUES ( ?f ) { ( resource:Q6434 ) ( resource:Q402209 ) } }
Kassel
Kassel
action union
action filter_type
action find_reverse
entity Fulda
relation located next to body of water
type city
action filter_type
action find_reverse
entity Ahne
relation located next to body of water
type city
action filter_type
action find_reverse
entity Losse
relation located next to body of water
type city
[{'concept': 'city'}, 'located next to body of water', 'Fulda'] [{'concept': 'city'}, 'located next to body of water', 'Ahne'] [{'concept': 'city'}, 'located next to body of water', 'Losse']
SELECT DISTINCT ?l WHERE { ?l property:located_next_to_body_of_water ?f . VALUES ( ?f ) { ( resource:Fulda ) ( resource:Ahne ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6434
P403
Q355304
USER
Which watercourses ultimately merges into Fulda ?
(c(Q355304),P403,Q2865)
action filter_type
action find_reverse
entity Q6434
relation P403
type Q355304
[{'concept': 'Q355304'}, 'P403', 'Q2865']
SELECT DISTINCT ?q WHERE { ?q property:P403 resource:Q6434 . ?q rdf:type ontology:Q355304 }
Fulda
action filter_type
action find_reverse
entity Fulda
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Kassel']
SELECT DISTINCT ?q WHERE { ?q property:mouth_of_the_watercourse resource:Fulda . ?q rdf:type ontology:watercourse }
[]
watercourse
Q685585 Q117440 Q874406
SYSTEM
Eder, Haune, Fliede
Q811658 Q896097 Q875918 Q685585 Q269772 Q813555 Q1419601 Q771476 Q873461 Q2245715 Q814858 Q1625510 Q830372 Q316834 Q833019 Q828330 Q117440 Q402209 Q874406 Q895952 Q431408 Q895879 Q876958 Q1550842 Q1461869 Q825573
(c(Q355304),P403,Q2865)
action filter_type
action find_reverse
entity Q6434
relation P403
type Q355304
[ANSWERS]
[{'concept': 'Q355304'}, 'P403', 'Q2865']
SELECT DISTINCT ?q WHERE { ?q property:P403 resource:Q6434 . ?q rdf:type ontology:Q355304 }
Bauna Losse Jossa Eder Wahlebach Bebra Pfieffe Aula Lütter Schmalnau Beise Holzgraben Mülmisch Drusel Ulfe Rohrbach Haune Ahne Fliede Nieste Giesel Espe Schlitz (river) Grunnelbach Kehrenbach Solz
Eder Haune Fliede
action filter_type
action find_reverse
entity Fulda
relation mouth of the watercourse
type watercourse
[{'concept': 'watercourse'}, 'mouth of the watercourse', 'Kassel']
SELECT DISTINCT ?q WHERE { ?q property:mouth_of_the_watercourse resource:Fulda . ?q rdf:type ontology:watercourse }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P403
Q15324 Q355304
USER
How many bodies of water do atleast 27 watercourses drain into ?
(c(Q355304),P403,c(Q15324))
action count
action atleast
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 27
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P403 ?k . ?k rdf:type ontology:Q15324 . ?l rdf:type ontology:Q355304 } GROUP BY ?k } . FILTER ( ?v >= 27 ) }
action count
action atleast
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 27
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:mouth_of_the_watercourse ?k . ?k rdf:type ontology:body_of_water . ?l rdf:type ontology:watercourse } GROUP BY ?k } . FILTER ( ?v >= 27 ) }
[]
body of water watercourse
SYSTEM
9
Q12630 Q1693 Q1247 Q33254 Q82931 Q38882 Q13924 Q223810 Q545
(c(Q355304),P403,c(Q15324))
action count
action atleast
action find_reverse_tuple_counts
relation P403
type Q15324
type Q355304
value 27
[ANSWER]
[{'concept': 'Q355304'}, 'P403', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P403 ?k . ?k rdf:type ontology:Q15324 . ?l rdf:type ontology:Q355304 } GROUP BY ?k } . FILTER ( ?v >= 27 ) }
Gulf of Mexico North Sea Caribbean Sea Tasman Sea Coral Sea Tyrrhenian Sea Adriatic Sea James Bay Baltic Sea
9
action count
action atleast
action find_reverse_tuple_counts
relation mouth of the watercourse
type body of water
type watercourse
value 27
[{'concept': 'watercourse'}, 'mouth of the watercourse', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?o ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:mouth_of_the_watercourse ?k . ?k rdf:type ontology:body_of_water . ?l rdf:type ontology:watercourse } GROUP BY ?k } . FILTER ( ?v >= 27 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q20 Q801
P27
Q502895
USER
Which people are a native of Israel and Norway ?
AND((c(Q502895),P27,Q801), (c(Q502895),P27,Q20))
action filter_type
action intersection
action find_reverse
entity Q801
relation P27
action find_reverse
entity Q20
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q801'], [{'concept': 'Q502895'}, 'P27', 'Q20']]}
SELECT DISTINCT ?i WHERE { ?i property:P27 resource:Q801 . ?i property:P27 resource:Q20 . ?i rdf:type ontology:Q502895 }
Norway Israel
action filter_type
action intersection
action find_reverse
entity Israel
relation country of citizenship
action find_reverse
entity Norway
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Israel'], [{'concept': 'common name'}, 'country of citizenship', 'Norway']]}
SELECT DISTINCT ?i WHERE { ?i property:country_of_citizenship resource:Israel . ?i property:country_of_citizenship resource:Norway . ?i rdf:type ontology:common_name }
[]
common name
Q3701344 Q706701
SYSTEM
Dan Alberto Fellus, Michael Melchior
Q3701344 Q706701
AND((c(Q502895),P27,Q801), (c(Q502895),P27,Q20))
action filter_type
action intersection
action find_reverse
entity Q801
relation P27
action find_reverse
entity Q20
relation P27
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q801'], [{'concept': 'Q502895'}, 'P27', 'Q20']]}
SELECT DISTINCT ?i WHERE { ?i property:P27 resource:Q801 . ?i property:P27 resource:Q20 . ?i rdf:type ontology:Q502895 }
Dan Alberto Fellus Michael Melchior
Dan Alberto Fellus Michael Melchior
action filter_type
action intersection
action find_reverse
entity Israel
relation country of citizenship
action find_reverse
entity Norway
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Israel'], [{'concept': 'common name'}, 'country of citizenship', 'Norway']]}
SELECT DISTINCT ?i WHERE { ?i property:country_of_citizenship resource:Israel . ?i property:country_of_citizenship resource:Norway . ?i rdf:type ontology:common_name }
[]