Simple Question (Direct)
Simple Question
Q1642937
P106
Q151885
USER
What is the profession of Henryk Nielaba ?
(Q1642937,P106,c(Q151885))
action filter_type
action find
entity Q1642937
relation P106
type Q151885
['Q1642937', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q151885 . resource:Q1642937 property:P106 ?n }
Henryk Nielaba
action filter_type
action find
entity Henryk Nielaba
relation occupation
type concept
['Henryk Nielaba', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:concept . resource:Henryk_Nielaba property:occupation ?n }
[]
concept
Q13381863
SYSTEM
fencer
Q13381863
(Q1642937,P106,c(Q151885))
action filter_type
action find
entity Q1642937
relation P106
type Q151885
The profession of Henryk Nielaba is a [ANSWER]
['Q1642937', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q151885 . resource:Q1642937 property:P106 ?n }
fencer
The profession of Henryk Nielaba is a fencer
fencer
action filter_type
action find
entity Henryk Nielaba
relation occupation
type concept
['Henryk Nielaba', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:concept . resource:Henryk_Nielaba property:occupation ?n }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1642937
P21
Q290
USER
What is the sex of Henryk Nielaba ?
(Q1642937,P21,c(Q290))
action filter_type
action find
entity Q1642937
relation P21
type Q290
['Q1642937', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q1642937 property:P21 ?c . ?c rdf:type ontology:Q290 }
Henryk Nielaba
action filter_type
action find
entity Henryk Nielaba
relation gender
type sex
['Henryk Nielaba', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Henryk_Nielaba property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1642937,P21,c(Q290))
action filter_type
action find
entity Q1642937
relation P21
type Q290
The sex of Henryk Nielaba is a [ANSWER]
['Q1642937', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q1642937 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
The sex of Henryk Nielaba is a male
male
action filter_type
action find
entity Henryk Nielaba
relation gender
type sex
['Henryk Nielaba', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Henryk_Nielaba property:gender ?c . ?c rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1642937
P1344
Q16510064
USER
Which sporting event did Henryk Nielaba compete in ?
(Q1642937,P1344,c(Q16510064))
action filter_type
action find
entity Q1642937
relation P1344
type Q16510064
['Q1642937', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?l WHERE { resource:Q1642937 property:P1344 ?l . ?l rdf:type ontology:Q16510064 }
Henryk Nielaba
action filter_type
action find
entity Henryk Nielaba
relation participant of
type sporting event
['Henryk Nielaba', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?l WHERE { resource:Henryk_Nielaba property:participant_of ?l . ?l rdf:type ontology:sporting_event }
[]
sporting event
Q5443098
SYSTEM
Fencing at the 1968 Summer Olympics – Men's team épée
Q5443098
(Q1642937,P1344,c(Q16510064))
action filter_type
action find
entity Q1642937
relation P1344
type Q16510064
Henryk Nielaba competed in [ANSWER]
['Q1642937', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?l WHERE { resource:Q1642937 property:P1344 ?l . ?l rdf:type ontology:Q16510064 }
Fencing at the 1968 Summer Olympics – Men's team épée
Henryk Nielaba competed in Fencing at the 1968 Summer Olympics – Men's team épée
Fencing at the 1968 Summer Olympics – Men's team épée
action filter_type
action find
entity Henryk Nielaba
relation participant of
type sporting event
['Henryk Nielaba', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?l WHERE { resource:Henryk_Nielaba property:participant_of ?l . ?l rdf:type ontology:sporting_event }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q872899
Q16510064
USER
And also tell me about Ferenc Csik?
(Q872899,P1344,c(Q16510064))
action filter_type
action find
entity Q872899
relation P1344
type Q16510064
['Q872899', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?z WHERE { resource:Q872899 property:P1344 ?z . ?z rdf:type ontology:Q16510064 }
Ferenc Csik
action filter_type
action find
entity Ferenc Csik
relation participant of
type sporting event
['Ferenc Csik', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?z WHERE { resource:Ferenc_Csik property:participant_of ?z . ?z rdf:type ontology:sporting_event }
[]
sporting event
Q7656333 Q7656335
SYSTEM
Swimming at the 1936 Summer Olympics – Men's 100 metre freestyle, Swimming at the 1936 Summer Olympics – Men's 4 × 200 metre freestyle relay
Q7656333 Q7656335
(Q872899,P1344,c(Q16510064))
action filter_type
action find
entity Q872899
relation P1344
type Q16510064
[ANSWERS]
['Q872899', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?z WHERE { resource:Q872899 property:P1344 ?z . ?z rdf:type ontology:Q16510064 }
Swimming at the 1936 Summer Olympics – Men's 100 metre freestyle Swimming at the 1936 Summer Olympics – Men's 4 × 200 metre freestyle relay
Swimming at the 1936 Summer Olympics – Men's 100 metre freestyle Swimming at the 1936 Summer Olympics – Men's 4 × 200 metre freestyle relay
action filter_type
action find
entity Ferenc Csik
relation participant of
type sporting event
['Ferenc Csik', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?z WHERE { resource:Ferenc_Csik property:participant_of ?z . ?z rdf:type ontology:sporting_event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q872899
P27
Q15617994
USER
Which administrative territory is the native country of Ferenc Csik ?
(Q872899,P27,c(Q15617994))
action filter_type
action find
entity Q872899
relation P27
type Q15617994
['Q872899', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q872899 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Ferenc Csik
action filter_type
action find
entity Ferenc Csik
relation country of citizenship
type designation for an administrative territorial entity
['Ferenc Csik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Ferenc_Csik property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q872899,P27,c(Q15617994))
action filter_type
action find
entity Q872899
relation P27
type Q15617994
In [ANSWER] is the native country of Ferenc Csik
['Q872899', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { resource:Q872899 property:P27 ?b . ?b rdf:type ontology:Q15617994 }
Hungary
In Hungary is the native country of Ferenc Csik
Hungary
action filter_type
action find
entity Ferenc Csik
relation country of citizenship
type designation for an administrative territorial entity
['Ferenc Csik', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Ferenc_Csik property:country_of_citizenship ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q872899
P20
Q515
USER
Where did that person expire ?
(Q28,P20,c(Q515))
action filter_type
action find
entity Q872899
relation P20
type Q515
['Q28', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { resource:Q872899 property:P20 ?b . ?b rdf:type ontology:Q515 }
Ferenc Csik
action filter_type
action find
entity Ferenc Csik
relation place of death
type city
['Hungary', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { resource:Ferenc_Csik property:place_of_death ?b . ?b rdf:type ontology:city }
[]
city
Q168648
SYSTEM
Sopron
Q168648
(Q28,P20,c(Q515))
action filter_type
action find
entity Q872899
relation P20
type Q515
That person expired in [ANSWER]
['Q28', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?b WHERE { resource:Q872899 property:P20 ?b . ?b rdf:type ontology:Q515 }
Sopron
That person expired in Sopron
Sopron
action filter_type
action find
entity Ferenc Csik
relation place of death
type city
['Hungary', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?b WHERE { resource:Ferenc_Csik property:place_of_death ?b . ?b rdf:type ontology:city }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q872899
P19
Q515
USER
Which city is the place of birth of Ferenc Csik ?
(Q872899,P19,c(Q515))
action filter_type
action find
entity Q872899
relation P19
type Q515
['Q872899', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q872899 property:P19 ?w }
Ferenc Csik
action filter_type
action find
entity Ferenc Csik
relation place of birth
type city
['Ferenc Csik', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Ferenc_Csik property:place_of_birth ?w }
[]
city
Q184998
SYSTEM
Kaposvár
Q184998
(Q872899,P19,c(Q515))
action filter_type
action find
entity Q872899
relation P19
type Q515
[ANSWER] is the place of birth of Ferenc Csik
['Q872899', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q515 . resource:Q872899 property:P19 ?w }
Kaposvár
Kaposvár is the place of birth of Ferenc Csik
Kaposvár
action filter_type
action find
entity Ferenc Csik
relation place of birth
type city
['Ferenc Csik', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:city . resource:Ferenc_Csik property:place_of_birth ?w }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q184998 Q93347 Q11733931
P190
Q56061
USER
Is that city a sister city of Mostar and Kampia, Cyprus ?
(Q184998,P190,Q93347) (Q184998,P190,Q11733931)
action is_in
entity Q184998
action intersection
action find_reverse
entity Q93347
relation P190
action find_reverse
entity Q11733931
relation P190
['Q184998', 'P190', 'Q93347'] ['Q184998', 'P190', 'Q11733931']
ASK WHERE { resource:Q184998 property:P190 resource:Q93347 . resource:Q184998 property:P190 resource:Q11733931 }
Kaposvár Mostar Kampia, Cyprus
action is_in
entity Kaposvár
action intersection
action find_reverse
entity Mostar
relation sister city
action find_reverse
entity Kampia, Cyprus
relation sister city
['Kaposvár', 'sister city', 'Mostar'] ['Kaposvár', 'sister city', 'Kampia, Cyprus']
ASK WHERE { resource:Kaposvár property:sister_city resource:Mostar . resource:Kaposvár property:sister_city resource:Kampia,_Cyprus }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q184998,P190,Q93347) (Q184998,P190,Q11733931)
action is_in
entity Q184998
action intersection
action find_reverse
entity Q93347
relation P190
action find_reverse
entity Q11733931
relation P190
[ANSWER]
['Q184998', 'P190', 'Q93347'] ['Q184998', 'P190', 'Q11733931']
ASK WHERE { resource:Q184998 property:P190 resource:Q93347 . resource:Q184998 property:P190 resource:Q11733931 }
YES and NO respectively
action is_in
entity Kaposvár
action intersection
action find_reverse
entity Mostar
relation sister city
action find_reverse
entity Kampia, Cyprus
relation sister city
['Kaposvár', 'sister city', 'Mostar'] ['Kaposvár', 'sister city', 'Kampia, Cyprus']
ASK WHERE { resource:Kaposvár property:sister_city resource:Mostar . resource:Kaposvár property:sister_city resource:Kampia,_Cyprus }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q168648 Q173474
P190
Q56061
USER
Is Veliko Tarnovo the sister city of Sopron ?
(Q168648,P190,Q173474)
action is_in
entity Q173474
action find
entity Q168648
relation P190
['Q168648', 'P190', 'Q173474']
ASK WHERE { resource:Q168648 property:P190 resource:Q173474 }
Sopron Veliko Tarnovo
action is_in
entity Veliko Tarnovo
action find
entity Sopron
relation sister city
['Sopron', 'sister city', 'Veliko Tarnovo']
ASK WHERE { resource:Sopron property:sister_city resource:Veliko_Tarnovo }
[]
administrative territorial entity
SYSTEM
YES
(Q168648,P190,Q173474)
action is_in
entity Q173474
action find
entity Q168648
relation P190
[ANSWER]
['Q168648', 'P190', 'Q173474']
ASK WHERE { resource:Q168648 property:P190 resource:Q173474 }
Yes
action is_in
entity Veliko Tarnovo
action find
entity Sopron
relation sister city
['Sopron', 'sister city', 'Veliko Tarnovo']
ASK WHERE { resource:Sopron property:sister_city resource:Veliko_Tarnovo }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184998
P127
Q811979
USER
Which architectural structure is owned by Kaposvár ?
(c(Q811979),P127,Q184998)
action filter_type
action find_reverse
entity Q184998
relation P127
type Q811979
[{'concept': 'Q811979'}, 'P127', 'Q184998']
SELECT DISTINCT ?l WHERE { ?l property:P127 resource:Q184998 . ?l rdf:type ontology:Q811979 }
Kaposvár
action filter_type
action find_reverse
entity Kaposvár
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Kaposvár']
SELECT DISTINCT ?l WHERE { ?l property:owned_by resource:Kaposvár . ?l rdf:type ontology:architectural_structure }
[]
architectural structure
Q371401
SYSTEM
Stadion Kaposvár Rákóczi
Q371401
(c(Q811979),P127,Q184998)
action filter_type
action find_reverse
entity Q184998
relation P127
type Q811979
[ANSWER] is owned by Kaposvár
[{'concept': 'Q811979'}, 'P127', 'Q184998']
SELECT DISTINCT ?l WHERE { ?l property:P127 resource:Q184998 . ?l rdf:type ontology:Q811979 }
Stadion Kaposvár Rákóczi
Stadion Kaposvár Rákóczi is owned by Kaposvár
Stadion Kaposvár Rákóczi
action filter_type
action find_reverse
entity Kaposvár
relation owned by
type architectural structure
[{'concept': 'architectural structure'}, 'owned by', 'Kaposvár']
SELECT DISTINCT ?l WHERE { ?l property:owned_by resource:Kaposvár . ?l rdf:type ontology:architectural_structure }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q184998
P1376
Q1162835
USER
Which district of Hungary has Kaposvár has its first city ?
(Q184998,P1376,c(Q1162835))
action filter_type
action find
entity Q184998
relation P1376
type Q1162835
['Q184998', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1162835 . resource:Q184998 property:P1376 ?x }
Kaposvár
action filter_type
action find
entity Kaposvár
relation capital of
type district of Hungary
['Kaposvár', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:district_of_Hungary . resource:Kaposvár property:capital_of ?x }
[]
district of Hungary
Q385784
SYSTEM
Kaposvár District
Q385784
(Q184998,P1376,c(Q1162835))
action filter_type
action find
entity Q184998
relation P1376
type Q1162835
[ANSWER] has Kaposvár has its first city
['Q184998', 'P1376', {'concept': 'Q1162835'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q1162835 . resource:Q184998 property:P1376 ?x }
Kaposvár District
Kaposvár District has Kaposvár has its first city
Kaposvár District
action filter_type
action find
entity Kaposvár
relation capital of
type district of Hungary
['Kaposvár', 'capital of', {'concept': 'district of Hungary'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:district_of_Hungary . resource:Kaposvár property:capital_of ?x }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1773
P206
Q337567 Q1267889 Q515
USER
How many cities are situated in the neighbourhood of greater number of still waterss or waterways than Riga ?
(c(Q515),P206,c(Q337567)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q1773
relation P206
type Q337567
type Q1267889
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?d WHERE { { ?d rdf:type ontology:Q515 . ?o rdf:type ontology:Q337567 . ?d property:P206 ?o } UNION { ?d property:P206 ?o . ?o rdf:type ontology:Q1267889 . ?d rdf:type ontology:Q515 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { resource:Q1773 property:P206 ?x . { { ?x rdf:type ontology:Q1267889 } UNION { ?x rdf:type ontology:Q337567 } } } } . FILTER ( ?w > ?f ) }
Riga
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type waterway
action count
action filter_multi_types
action find
entity Riga
relation located next to body of water
type still waters
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?d WHERE { { ?d rdf:type ontology:city . ?o rdf:type ontology:still_waters . ?d property:located_next_to_body_of_water ?o } UNION { ?d property:located_next_to_body_of_water ?o . ?o rdf:type ontology:waterway . ?d rdf:type ontology:city } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { resource:Riga property:located_next_to_body_of_water ?x . { { ?x rdf:type ontology:waterway } UNION { ?x rdf:type ontology:still_waters } } } } . FILTER ( ?w > ?f ) }
[]
still waters waterway city
SYSTEM
11
Q1711 Q3958 Q633935 Q890122 Q3826 Q4174 Q4346 Q23661 Q3931 Q646780 Q3857
(c(Q515),P206,c(Q337567)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q1773
relation P206
type Q337567
type Q1267889
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?d WHERE { { ?d rdf:type ontology:Q515 . ?o rdf:type ontology:Q337567 . ?d property:P206 ?o } UNION { ?d property:P206 ?o . ?o rdf:type ontology:Q1267889 . ?d rdf:type ontology:Q515 } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { resource:Q1773 property:P206 ?x . { { ?x rdf:type ontology:Q1267889 } UNION { ?x rdf:type ontology:Q337567 } } } } . FILTER ( ?w > ?f ) }
Potsdam Neubrandenburg Oga Bolhrad Muscat Emden Waren (Müritz) Wellington Brandenburg an der Havel Katagami Wilhelmshaven
11
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type waterway
action count
action filter_multi_types
action find
entity Riga
relation located next to body of water
type still waters
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?d WHERE { { ?d rdf:type ontology:city . ?o rdf:type ontology:still_waters . ?d property:located_next_to_body_of_water ?o } UNION { ?d property:located_next_to_body_of_water ?o . ?o rdf:type ontology:waterway . ?d rdf:type ontology:city } } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?f ) WHERE { resource:Riga property:located_next_to_body_of_water ?x . { { ?x rdf:type ontology:waterway } UNION { ?x rdf:type ontology:still_waters } } } } . FILTER ( ?w > ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5838
P206
Q337567 Q1267889 Q515
USER
And how about Kabul?
(c(Q515),P206,c(Q337567)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q5838
relation P206
type Q337567
type Q1267889
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Q5838 property:P206 ?r . { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) ?m WHERE { { ?m property:P206 ?e . ?m rdf:type ontology:Q515 . ?e rdf:type ontology:Q1267889 } UNION { ?m property:P206 ?e . ?m rdf:type ontology:Q515 . ?e rdf:type ontology:Q337567 } } GROUP BY ?m } }
Kabul
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type waterway
action count
action filter_multi_types
action find
entity Kabul
relation located next to body of water
type still waters
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Kabul property:located_next_to_body_of_water ?r . { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:still_waters ) ( ontology:waterway ) } } } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) ?m WHERE { { ?m property:located_next_to_body_of_water ?e . ?m rdf:type ontology:city . ?e rdf:type ontology:waterway } UNION { ?m property:located_next_to_body_of_water ?e . ?m rdf:type ontology:city . ?e rdf:type ontology:still_waters } } GROUP BY ?m } }
[]
still waters waterway city
SYSTEM
11
Q1711 Q3958 Q633935 Q890122 Q3826 Q4174 Q4346 Q23661 Q3931 Q646780 Q3857
(c(Q515),P206,c(Q337567)|c(Q1267889))
action count
action greater
action union
action find_tuple_counts
relation P206
type Q515
type Q337567
action find_tuple_counts
relation P206
type Q515
type Q1267889
action count
action filter_multi_types
action find
entity Q5838
relation P206
type Q337567
type Q1267889
[ANSWER]
[{'concept': 'Q515'}, 'P206', [{'concept': 'Q337567'}, {'concept': 'Q1267889'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Q5838 property:P206 ?r . { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:Q337567 ) ( ontology:Q1267889 ) } } } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) ?m WHERE { { ?m property:P206 ?e . ?m rdf:type ontology:Q515 . ?e rdf:type ontology:Q1267889 } UNION { ?m property:P206 ?e . ?m rdf:type ontology:Q515 . ?e rdf:type ontology:Q337567 } } GROUP BY ?m } }
Potsdam Neubrandenburg Oga Bolhrad Muscat Emden Waren (Müritz) Wellington Brandenburg an der Havel Katagami Wilhelmshaven
11
action count
action greater
action union
action find_tuple_counts
relation located next to body of water
type city
type still waters
action find_tuple_counts
relation located next to body of water
type city
type waterway
action count
action filter_multi_types
action find
entity Kabul
relation located next to body of water
type still waters
type waterway
[{'concept': 'city'}, 'located next to body of water', [{'concept': 'still waters'}, {'concept': 'waterway'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { FILTER ( ?z > ?a ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?a ) WHERE { resource:Kabul property:located_next_to_body_of_water ?r . { ?r rdf:type ?q . VALUES ( ?q ) { ( ontology:still_waters ) ( ontology:waterway ) } } } } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?z ) ?m WHERE { { ?m property:located_next_to_body_of_water ?e . ?m rdf:type ontology:city . ?e rdf:type ontology:waterway } UNION { ?m property:located_next_to_body_of_water ?e . ?m rdf:type ontology:city . ?e rdf:type ontology:still_waters } } GROUP BY ?m } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28
P463
Q56061
USER
Which administrative territory was Hungary a member of ?
(Q28,P463,c(Q56061))
action filter_type
action find
entity Q28
relation P463
type Q56061
['Q28', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q28 property:P463 ?w . ?w rdf:type ontology:Q56061 }
Hungary
action filter_type
action find
entity Hungary
relation member of
type administrative territorial entity
['Hungary', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Hungary property:member_of ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q458
SYSTEM
European Union
Q458
(Q28,P463,c(Q56061))
action filter_type
action find
entity Q28
relation P463
type Q56061
Which administrative territory was Hungary a member of
['Q28', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q28 property:P463 ?w . ?w rdf:type ontology:Q56061 }
European Union
Which administrative territory was Hungary a member of
European Union
action filter_type
action find
entity Hungary
relation member of
type administrative territorial entity
['Hungary', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Hungary property:member_of ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1045
Q56061
USER
And what about Somalia?
(Q1045,P463,c(Q56061))
action filter_type
action find
entity Q1045
relation P463
type Q56061
['Q1045', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1045 property:P463 ?x . ?x rdf:type ontology:Q56061 }
Somalia
action filter_type
action find
entity Somalia
relation member of
type administrative territorial entity
['Somalia', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Somalia property:member_of ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q7172 Q7159
SYSTEM
Arab League, African Union
Q7172 Q7159
(Q1045,P463,c(Q56061))
action filter_type
action find
entity Q1045
relation P463
type Q56061
[ANSWERS]
['Q1045', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { resource:Q1045 property:P463 ?x . ?x rdf:type ontology:Q56061 }
Arab League African Union
Arab League African Union
action filter_type
action find
entity Somalia
relation member of
type administrative territorial entity
['Somalia', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Somalia property:member_of ?x . ?x rdf:type ontology:administrative_territorial_entity }
[]