Simple Question (Direct)
Simple Question
Q100927
P20
Q56061
USER
Where did Christfried Kirch die ?
(Q100927,P20,c(Q56061))
action filter_type
action find
entity Q100927
relation P20
type Q56061
['Q100927', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q100927 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Christfried Kirch
action filter_type
action find
entity Christfried Kirch
relation place of death
type administrative territorial entity
['Christfried Kirch', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Christfried_Kirch property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q100927,P20,c(Q56061))
action filter_type
action find
entity Q100927
relation P20
type Q56061
Christfried Kirch died in [ANSWER]
['Q100927', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?k WHERE { resource:Q100927 property:P20 ?k . ?k rdf:type ontology:Q56061 }
Berlin
Christfried Kirch died in Berlin
Berlin
action filter_type
action find
entity Christfried Kirch
relation place of death
type administrative territorial entity
['Christfried Kirch', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { resource:Christfried_Kirch property:place_of_death ?k . ?k rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q100927
P40
Q502895
USER
Which people have Christfried Kirch as a child ?
(c(Q502895),P40,Q100927)
action filter_type
action find_reverse
entity Q100927
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q100927']
SELECT DISTINCT ?c WHERE { ?c property:P40 resource:Q100927 . ?c rdf:type ontology:Q502895 }
Christfried Kirch
action filter_type
action find_reverse
entity Christfried Kirch
relation child
type common name
[{'concept': 'common name'}, 'child', 'Christfried Kirch']
SELECT DISTINCT ?c WHERE { ?c property:child resource:Christfried_Kirch . ?c rdf:type ontology:common_name }
[]
common name
Q77511 Q62317
SYSTEM
Maria Margarethe Kirch, Gottfried Kirch
Q77511 Q62317
(c(Q502895),P40,Q100927)
action filter_type
action find_reverse
entity Q100927
relation P40
type Q502895
[ANSWERS] have Christfried Kirch as a child
[{'concept': 'Q502895'}, 'P40', 'Q100927']
SELECT DISTINCT ?c WHERE { ?c property:P40 resource:Q100927 . ?c rdf:type ontology:Q502895 }
Maria Margarethe Kirch Gottfried Kirch
Maria Margarethe Kirch and Gottfried Kirch have Christfried Kirch as a child
Maria Margarethe Kirch Gottfried Kirch
action filter_type
action find_reverse
entity Christfried Kirch
relation child
type common name
[{'concept': 'common name'}, 'child', 'Christfried Kirch']
SELECT DISTINCT ?c WHERE { ?c property:child resource:Christfried_Kirch . ?c rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q62317
P26
Q502895
USER
Which person is married to that one ?
(c(Q502895),P26,Q62317)
action filter_type
action find
entity Q62317
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q62317']
SELECT DISTINCT ?j WHERE { resource:Q62317 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Gottfried Kirch
action filter_type
action find
entity Gottfried Kirch
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gottfried Kirch']
SELECT DISTINCT ?j WHERE { resource:Gottfried_Kirch property:spouse ?j . ?j rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q77511
SYSTEM
Did you mean Maria Margarethe Kirch ?
Q77511 Q62317
(c(Q502895),P26,Q77511) (c(Q502895),P26,Q62317)
[ANSWER]
[{'concept': 'Q502895'}, 'P26', 'Q77511'] [{'concept': 'Q502895'}, 'P26', 'Q62317']
SELECT DISTINCT ?j WHERE { resource:Q62317 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Maria Margarethe Kirch Gottfried Kirch
Did you mean Maria Margarethe Kirch ?
Maria Margarethe Kirch
[{'concept': 'common name'}, 'spouse', 'Maria Margarethe Kirch'] [{'concept': 'common name'}, 'spouse', 'Gottfried Kirch']
SELECT DISTINCT ?j WHERE { resource:Gottfried_Kirch property:spouse ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Gottfried Kirch. Could you tell me the answer for that?
(c(Q502895),P26,Q62317)
Q62317
[{'concept': 'Q502895'}, 'P26', 'Q62317']
[{'concept': 'common name'}, 'spouse', 'Gottfried Kirch']
[]
Q77511
SYSTEM
Maria Margarethe Kirch
Q77511
(c(Q502895),P26,Q62317)
action filter_type
action find
entity Q62317
relation P26
type Q502895
[ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q62317']
SELECT DISTINCT ?j WHERE { resource:Q62317 property:P26 ?j . ?j rdf:type ontology:Q502895 }
Maria Margarethe Kirch
Maria Margarethe Kirch is married to that one
Maria Margarethe Kirch
action filter_type
action find
entity Gottfried Kirch
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Gottfried Kirch']
SELECT DISTINCT ?j WHERE { resource:Gottfried_Kirch property:spouse ?j . ?j rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q77511 Q64
P20
Q56061
USER
Did Maria Margarethe Kirch expire Berlin ?
(Q77511,P20,Q64)
action is_in
entity Q64
action find
entity Q77511
relation P20
['Q77511', 'P20', 'Q64']
ASK WHERE { resource:Q77511 property:P20 resource:Q64 }
Maria Margarethe Kirch Berlin
action is_in
entity Berlin
action find
entity Maria Margarethe Kirch
relation place of death
['Maria Margarethe Kirch', 'place of death', 'Berlin']
ASK WHERE { resource:Maria_Margarethe_Kirch property:place_of_death resource:Berlin }
[]
administrative territorial entity
SYSTEM
YES
(Q77511,P20,Q64)
action is_in
entity Q64
action find
entity Q77511
relation P20
[ANSWER]
['Q77511', 'P20', 'Q64']
ASK WHERE { resource:Q77511 property:P20 resource:Q64 }
Yes
action is_in
entity Berlin
action find
entity Maria Margarethe Kirch
relation place of death
['Maria Margarethe Kirch', 'place of death', 'Berlin']
ASK WHERE { resource:Maria_Margarethe_Kirch property:place_of_death resource:Berlin }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q726306
P1303
Q34379 Q502895
USER
Which musical instruments can greater number of people perform with than erhu ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q726306
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:Q34379 . resource:Q726306 property:P1303 ?d } } . FILTER ( ?s > ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?p } }
erhu
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity erhu
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:musical_instrument . resource:erhu property:instrument ?d } } . FILTER ( ?s > ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?p } }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q742180 Q1444 Q220971 Q128309 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q726306
relation P1303
type Q34379
[ANSWERS] can greater number of people perform with than erhu
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:Q34379 . resource:Q726306 property:P1303 ?d } } . FILTER ( ?s > ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:P1303 ?p . ?p rdf:type ontology:Q34379 . ?a rdf:type ontology:Q502895 } GROUP BY ?p } }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla viola d'amore organ marimba drum kit electronic keyboard drum
Piano, harpsichord and viola can greater number of people perform with than erhu
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity erhu
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?e ) WHERE { ?d rdf:type ontology:musical_instrument . resource:erhu property:instrument ?d } } . FILTER ( ?s > ?e ) . { SELECT DISTINCT ?p ( COUNT ( ?a ) AS ?s ) WHERE { ?a property:instrument ?p . ?p rdf:type ontology:musical_instrument . ?a rdf:type ontology:common_name } GROUP BY ?p } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q19058630 Q100927
P276 P19
Q56061
USER
Which administrative territories were Christfried Kirch born or are Ebadstraat located ?
OR((Q100927,P19,c(Q56061)), (Q19058630,P276,c(Q56061)))
action filter_type
action union
action find
entity Q100927
relation P19
action find
entity Q19058630
relation P276
type Q56061
{'OR': [['Q100927', 'P19', {'concept': 'Q56061'}], ['Q19058630', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q100927 property:P19 ?r } UNION { resource:Q19058630 property:P276 ?r } } . ?r rdf:type ontology:Q56061 }
Ebadstraat Christfried Kirch
action filter_type
action union
action find
entity Christfried Kirch
relation place of birth
action find
entity Ebadstraat
relation location
type administrative territorial entity
{'OR': [['Christfried Kirch', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ebadstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Christfried_Kirch property:place_of_birth ?r } UNION { resource:Ebadstraat property:location ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q494747 Q3972033
SYSTEM
Guben, Beek
Q494747 Q3972033
OR((Q100927,P19,c(Q56061)), (Q19058630,P276,c(Q56061)))
action filter_type
action union
action find
entity Q100927
relation P19
action find
entity Q19058630
relation P276
type Q56061
Christfried Kirch were born located in [ANSWERS]
{'OR': [['Q100927', 'P19', {'concept': 'Q56061'}], ['Q19058630', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q100927 property:P19 ?r } UNION { resource:Q19058630 property:P276 ?r } } . ?r rdf:type ontology:Q56061 }
Guben Beek
Christfried Kirch were born located in Guben and Beek
Guben Beek
action filter_type
action union
action find
entity Christfried Kirch
relation place of birth
action find
entity Ebadstraat
relation location
type administrative territorial entity
{'OR': [['Christfried Kirch', 'place of birth', {'concept': 'administrative territorial entity'}], ['Ebadstraat', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Christfried_Kirch property:place_of_birth ?r } UNION { resource:Ebadstraat property:location ?r } } . ?r rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q15617994 Q24293650
USER
How many administrative territories and types of german administrative division are partner town of that administrative territory ?
(c(Q15617994),P190,Q494747) (c(Q24293650),P190,Q494747) (c(Q15617994),P190,Q494747) (c(Q24293650),P190,Q494747) (c(Q15617994),P190,Q3972033) (c(Q24293650),P190,Q3972033)
[{'concept': 'Q15617994'}, 'P190', 'Q494747'] [{'concept': 'Q24293650'}, 'P190', 'Q494747'] [{'concept': 'Q15617994'}, 'P190', 'Q494747'] [{'concept': 'Q24293650'}, 'P190', 'Q494747'] [{'concept': 'Q15617994'}, 'P190', 'Q3972033'] [{'concept': 'Q24293650'}, 'P190', 'Q3972033']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q18612095 } UNION { ?y property:P190 resource:Q18612095 } UNION { ?z property:P190 resource:Q18612095 } UNION { ?y property:P190 resource:Q18612095 } UNION { ?z property:P190 resource:Q424050 } UNION { ?y property:P190 resource:Q424050 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q24293650 }
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Guben'] [{'concept': 'type of german administrative division'}, 'sister city', 'Guben'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Guben'] [{'concept': 'type of german administrative division'}, 'sister city', 'Guben'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Beek'] [{'concept': 'type of german administrative division'}, 'sister city', 'Beek']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Guben } UNION { ?y property:sister_city resource:Guben } UNION { ?z property:sister_city resource:Guben } UNION { ?y property:sister_city resource:Guben } UNION { ?z property:sister_city resource:Beek } UNION { ?y property:sister_city resource:Beek } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:type_of_german_administrative_division }
[]
designation for an administrative territorial entity type of german administrative division
Quantitative|Count|Mult. entity type|Clarification
Q3972033
SYSTEM
Did you mean Beek ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q18612095 } UNION { ?y property:P190 resource:Q18612095 } UNION { ?z property:P190 resource:Q18612095 } UNION { ?y property:P190 resource:Q18612095 } UNION { ?z property:P190 resource:Q424050 } UNION { ?y property:P190 resource:Q424050 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q24293650 }
Did you mean Beek ?
Beek
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Guben } UNION { ?y property:sister_city resource:Guben } UNION { ?z property:sister_city resource:Guben } UNION { ?y property:sister_city resource:Guben } UNION { ?z property:sister_city resource:Beek } UNION { ?y property:sister_city resource:Beek } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:type_of_german_administrative_division }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Guben. Could you tell me the answer for that?
(c(Q15617994),P190,Q494747) (c(Q24293650),P190,Q494747) (c(Q15617994),P190,Q494747) (c(Q24293650),P190,Q494747) (c(Q15617994),P190,Q3972033) (c(Q24293650),P190,Q3972033)
Q494747
[{'concept': 'Q15617994'}, 'P190', 'Q494747'] [{'concept': 'Q24293650'}, 'P190', 'Q494747'] [{'concept': 'Q15617994'}, 'P190', 'Q494747'] [{'concept': 'Q24293650'}, 'P190', 'Q494747'] [{'concept': 'Q15617994'}, 'P190', 'Q3972033'] [{'concept': 'Q24293650'}, 'P190', 'Q3972033']
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Guben'] [{'concept': 'type of german administrative division'}, 'sister city', 'Guben'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Guben'] [{'concept': 'type of german administrative division'}, 'sister city', 'Guben'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Beek'] [{'concept': 'type of german administrative division'}, 'sister city', 'Beek']
[]
SYSTEM
1 administrative territories and 1 types of german administrative division
Q6671 Q14856
(c(Q15617994),P190,Q494747) (c(Q24293650),P190,Q494747) (c(Q15617994),P190,Q494747) (c(Q24293650),P190,Q494747) (c(Q15617994),P190,Q3972033) (c(Q24293650),P190,Q3972033)
[ANSWER]
[{'concept': 'Q15617994'}, 'P190', 'Q494747'] [{'concept': 'Q24293650'}, 'P190', 'Q494747'] [{'concept': 'Q15617994'}, 'P190', 'Q494747'] [{'concept': 'Q24293650'}, 'P190', 'Q494747'] [{'concept': 'Q15617994'}, 'P190', 'Q3972033'] [{'concept': 'Q24293650'}, 'P190', 'Q3972033']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q18612095 } UNION { ?y property:P190 resource:Q18612095 } UNION { ?z property:P190 resource:Q18612095 } UNION { ?y property:P190 resource:Q18612095 } UNION { ?z property:P190 resource:Q424050 } UNION { ?y property:P190 resource:Q424050 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q24293650 }
Cittadella Laatzen
1 administrative territories and 1 types of german administrative division
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Guben'] [{'concept': 'type of german administrative division'}, 'sister city', 'Guben'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Guben'] [{'concept': 'type of german administrative division'}, 'sister city', 'Guben'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Beek'] [{'concept': 'type of german administrative division'}, 'sister city', 'Beek']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Guben } UNION { ?y property:sister_city resource:Guben } UNION { ?z property:sister_city resource:Guben } UNION { ?y property:sister_city resource:Guben } UNION { ?z property:sister_city resource:Beek } UNION { ?y property:sister_city resource:Beek } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:type_of_german_administrative_division }
[]