Simple Question (Direct)
Simple Question
Q99219
P1303
Q34379
USER
Which musical instrument is played by Martin Lücker ?
(Q99219,P1303,c(Q34379))
action filter_type
action find
entity Q99219
relation P1303
type Q34379
['Q99219', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { resource:Q99219 property:P1303 ?e . ?e rdf:type ontology:Q34379 }
Martin Lücker
action filter_type
action find
entity Martin Lücker
relation instrument
type musical instrument
['Martin Lücker', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { resource:Martin_Lücker property:instrument ?e . ?e rdf:type ontology:musical_instrument }
[]
musical instrument
Q1444
SYSTEM
organ
Q1444
(Q99219,P1303,c(Q34379))
action filter_type
action find
entity Q99219
relation P1303
type Q34379
Har [ANSWER] is played by Martin Lücker
['Q99219', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?e WHERE { resource:Q99219 property:P1303 ?e . ?e rdf:type ontology:Q34379 }
organ
Har organ is played by Martin Lücker
organ
action filter_type
action find
entity Martin Lücker
relation instrument
type musical instrument
['Martin Lücker', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?e WHERE { resource:Martin_Lücker property:instrument ?e . ?e rdf:type ontology:musical_instrument }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q99219
P27
Q1048835
USER
Which political territory is Martin Lücker an inhabitant of ?
(Q99219,P27,c(Q1048835))
action filter_type
action find
entity Q99219
relation P27
type Q1048835
['Q99219', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q99219 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Martin Lücker
action filter_type
action find
entity Martin Lücker
relation country of citizenship
type political territorial entity
['Martin Lücker', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Martin_Lücker property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q99219,P27,c(Q1048835))
action filter_type
action find
entity Q99219
relation P27
type Q1048835
[ANSWER] is Martin Lücker an inhabitant of
['Q99219', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { resource:Q99219 property:P27 ?n . ?n rdf:type ontology:Q1048835 }
Germany
Germany is Martin Lücker an inhabitant of
Germany
action filter_type
action find
entity Martin Lücker
relation country of citizenship
type political territorial entity
['Martin Lücker', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Martin_Lücker property:country_of_citizenship ?n . ?n rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q15453986
Q1048835
USER
And what about Horst Rettig?
(Q15453986,P27,c(Q1048835))
action filter_type
action find
entity Q15453986
relation P27
type Q1048835
['Q15453986', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q15453986 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Horst Rettig
action filter_type
action find
entity Horst Rettig
relation country of citizenship
type political territorial entity
['Horst Rettig', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Horst_Rettig property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q15453986,P27,c(Q1048835))
action filter_type
action find
entity Q15453986
relation P27
type Q1048835
[ANSWER]
['Q15453986', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q15453986 property:P27 ?l . ?l rdf:type ontology:Q1048835 }
Germany
Germany
action filter_type
action find
entity Horst Rettig
relation country of citizenship
type political territorial entity
['Horst Rettig', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Horst_Rettig property:country_of_citizenship ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with atleast 1 political territory ?
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 . ?h property:P530 ?o } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?o } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q1000 Q40 Q781 Q778 Q183 Q408 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q1048835))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWERS] have diplomatic relationships with atleast 1 political territory
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h rdf:type ontology:Q1048835 . ?o rdf:type ontology:Q1048835 . ?h property:P530 ?o } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
Gabon Austria Antigua and Barbuda The Bahamas Germany Australia Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Germany, Australia and Denmark have diplomatic relationships with atleast 1 political territory
Germany Australia Denmark
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?t ) WHERE { ?h rdf:type ontology:political_territorial_entity . ?o rdf:type ontology:political_territorial_entity . ?h property:diplomatic_relation ?o } GROUP BY ?h } . FILTER ( ?t >= 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q953
P530
Q15617994
USER
Are Zambia known to have diplomatic connections with those political territories ?
(Q953,P530,Q183) (Q953,P530,Q408) (Q953,P530,Q35)
action is_in
entity prev_answer
action find
entity Q953
relation P530
['Q953', 'P530', 'Q183'] ['Q953', 'P530', 'Q408'] ['Q953', 'P530', 'Q35']
ASK WHERE { VALUES ( ?g ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q953 property:P530 ?g }
Zambia
action is_in
entity prev_answer
action find
entity Zambia
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Germany'] ['Zambia', 'diplomatic relation', 'Australia'] ['Zambia', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?g ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Zambia property:diplomatic_relation ?g }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q953,P530,Q183) (Q953,P530,Q408) (Q953,P530,Q35)
action is_in
entity prev_answer
action find
entity Q953
relation P530
[ANSWER]
['Q953', 'P530', 'Q183'] ['Q953', 'P530', 'Q408'] ['Q953', 'P530', 'Q35']
ASK WHERE { VALUES ( ?g ) { ( resource:Q1000 ) ( resource:Q40 ) ( resource:Q781 ) } . resource:Q953 property:P530 ?g }
Yes
action is_in
entity prev_answer
action find
entity Zambia
relation diplomatic relation
['Zambia', 'diplomatic relation', 'Germany'] ['Zambia', 'diplomatic relation', 'Australia'] ['Zambia', 'diplomatic relation', 'Denmark']
ASK WHERE { VALUES ( ?g ) { ( resource:Gabon ) ( resource:Austria ) ( resource:Antigua_and_Barbuda ) } . resource:Zambia property:diplomatic_relation ?g }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q5705
P495
Q1048835 Q201658 Q2342494
USER
Which political territories are the countries of origin of less number of film genres and collectables than Catalonia ?
(c(Q201658)|c(Q2342494),P495,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q5705
relation P495
type Q201658
type Q2342494
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:P495 ?x . ?x rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q201658 } UNION { ?w property:P495 ?x . ?x rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q2342494 } } GROUP BY ?x } . FILTER ( ?q < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P495 resource:Q5705 . { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } } } } }
Catalonia
action less
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Catalonia
relation country of origin
type film genre
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:country_of_origin ?x . ?x rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:film_genre } UNION { ?w property:country_of_origin ?x . ?x rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:collectable } } GROUP BY ?x } . FILTER ( ?q < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:country_of_origin resource:Catalonia . { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:film_genre ) ( ontology:collectable ) } } } } }
[]
political territorial entity film genre collectable
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q1747689 Q838261 Q769 Q763 Q1054923 Q13353 Q781 Q1823 Q407199 Q778 Q691 Q234 Q2991382 Q9337 Q23635 Q31747 Q129286
(c(Q201658)|c(Q2342494),P495,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q201658
action find_reverse_tuple_counts
relation P495
type Q1048835
type Q2342494
action count
action filter_multi_types
action find_reverse
entity Q5705
relation P495
type Q201658
type Q2342494
[ANSWERS] are the countries of origin of less number of film genres and collectables than Catalonia
[[{'concept': 'Q201658'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:P495 ?x . ?x rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q201658 } UNION { ?w property:P495 ?x . ?x rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q2342494 } } GROUP BY ?x } . FILTER ( ?q < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:P495 resource:Q5705 . { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:Q201658 ) ( ontology:Q2342494 ) } } } } }
Gabon Ancient Rome Federal Republic of Yugoslavia Grenada Saint Kitts and Nevis British Hong Kong Montserrat Antigua and Barbuda Aceh Palestinian territories The Bahamas Papua New Guinea Flemish Region County of Provence Flemish Region Bermuda Irish Free State British Raj
Gabon, Grenada and Papua New Guinea are the countries of origin of less number of film genres and collectables than Catalonia
Gabon Grenada Papua New Guinea
action less
action union
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type film genre
action find_reverse_tuple_counts
relation country of origin
type political territorial entity
type collectable
action count
action filter_multi_types
action find_reverse
entity Catalonia
relation country of origin
type film genre
type collectable
[[{'concept': 'film genre'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?q ) WHERE { { ?w property:country_of_origin ?x . ?x rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:film_genre } UNION { ?w property:country_of_origin ?x . ?x rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:collectable } } GROUP BY ?x } . FILTER ( ?q < ?g ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { ?s property:country_of_origin resource:Catalonia . { ?s rdf:type ?j . VALUES ( ?j ) { ( ontology:film_genre ) ( ontology:collectable ) } } } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1000
P85
Q484692
USER
Which hymn is the anthem for that political territory ?
(Q1000,P85,c(Q484692))
action filter_type
action find
entity Q1000
relation P85
type Q484692
['Q1000', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q484692 . resource:Q1000 property:P85 ?q }
Gabon
action filter_type
action find
entity Gabon
relation anthem
type hymn
['Gabon', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:hymn . resource:Gabon property:anthem ?q }
[]
hymn
Clarification for simple ques.
Q691
SYSTEM
Did you mean Papua New Guinea ?
Q1000 Q769 Q691
(Q1000,P85,c(Q484692)) (Q769,P85,c(Q484692)) (Q691,P85,c(Q484692))
[ANSWER]
['Q1000', 'P85', {'concept': 'Q484692'}] ['Q769', 'P85', {'concept': 'Q484692'}] ['Q691', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q484692 . resource:Q1000 property:P85 ?q }
Gabon Grenada Papua New Guinea
Did you mean Papua New Guinea ?
Papua New Guinea
['Gabon', 'anthem', {'concept': 'hymn'}] ['Grenada', 'anthem', {'concept': 'hymn'}] ['Papua New Guinea', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:hymn . resource:Gabon property:anthem ?q }
[]
Simple Question (Coreferenced)
USER
No, I meant Gabon. Could you tell me the answer for that?
(Q1000,P85,c(Q484692))
Q1000
['Q1000', 'P85', {'concept': 'Q484692'}]
['Gabon', 'anthem', {'concept': 'hymn'}]
[]
Q242723
SYSTEM
La Concorde
Q242723
(Q1000,P85,c(Q484692))
action filter_type
action find
entity Q1000
relation P85
type Q484692
[ANSWER] is the anthem for that political territory
['Q1000', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q484692 . resource:Q1000 property:P85 ?q }
La Concorde
La Concorde is the anthem for that political territory
La Concorde
action filter_type
action find
entity Gabon
relation anthem
type hymn
['Gabon', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:hymn . resource:Gabon property:anthem ?q }
[]