Simple Question (Direct)
Simple Question
Q168664
P7
Q502895
USER
Who has Elizabeth Alexeievna as their brother ?
(Q168664,P7,c(Q502895))
action filter_type
action find
entity Q168664
relation P7
type Q502895
['Q168664', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q168664 property:P7 ?s }
Elizabeth Alexeievna
action filter_type
action find
entity Elizabeth Alexeievna
relation brother
type common name
['Elizabeth Alexeievna', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Elizabeth_Alexeievna property:brother ?s }
[]
common name
Q57799
SYSTEM
Charles, Grand Duke of Baden
Q57799
(Q168664,P7,c(Q502895))
action filter_type
action find
entity Q168664
relation P7
type Q502895
[ANSWER] has Elizabeth Alexeievna as their brother
['Q168664', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q502895 . resource:Q168664 property:P7 ?s }
Charles, Grand Duke of Baden
Charles, Grand Duke of Baden has Elizabeth Alexeievna as their brother
Charles, Grand Duke of Baden
action filter_type
action find
entity Elizabeth Alexeievna
relation brother
type common name
['Elizabeth Alexeievna', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:common_name . resource:Elizabeth_Alexeievna property:brother ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q57799
P22
Q502895
USER
Which person was the father of that one ?
(Q57799,P22,c(Q502895))
action filter_type
action find
entity Q57799
relation P22
type Q502895
['Q57799', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q57799 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Charles, Grand Duke of Baden
action filter_type
action find
entity Charles, Grand Duke of Baden
relation father
type common name
['Charles, Grand Duke of Baden', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Charles,_Grand_Duke_of_Baden property:father ?l . ?l rdf:type ontology:common_name }
[]
common name
Q60522
SYSTEM
Charles Louis, Hereditary Prince of Baden
Q60522
(Q57799,P22,c(Q502895))
action filter_type
action find
entity Q57799
relation P22
type Q502895
[ANSWER] was the father of that one
['Q57799', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q57799 property:P22 ?l . ?l rdf:type ontology:Q502895 }
Charles Louis, Hereditary Prince of Baden
Charles Louis, Hereditary Prince of Baden was the father of that one
Charles Louis, Hereditary Prince of Baden
action filter_type
action find
entity Charles, Grand Duke of Baden
relation father
type common name
['Charles, Grand Duke of Baden', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Charles,_Grand_Duke_of_Baden property:father ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q57799
P26
Q502895
USER
Who is married to Charles, Grand Duke of Baden ?
(Q57799,P26,c(Q502895))
action filter_type
action find
entity Q57799
relation P26
type Q502895
['Q57799', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q57799 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Charles, Grand Duke of Baden
action filter_type
action find
entity Charles, Grand Duke of Baden
relation spouse
type common name
['Charles, Grand Duke of Baden', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Charles,_Grand_Duke_of_Baden property:spouse ?k . ?k rdf:type ontology:common_name }
[]
common name
Q62024
SYSTEM
Stéphanie de Beauharnais
Q62024
(Q57799,P26,c(Q502895))
action filter_type
action find
entity Q57799
relation P26
type Q502895
France [ANSWER] is married to Charles, Grand Duke of Baden
['Q57799', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q57799 property:P26 ?k . ?k rdf:type ontology:Q502895 }
Stéphanie de Beauharnais
France Stéphanie de Beauharnais is married to Charles, Grand Duke of Baden
Stéphanie de Beauharnais
action filter_type
action find
entity Charles, Grand Duke of Baden
relation spouse
type common name
['Charles, Grand Duke of Baden', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Charles,_Grand_Duke_of_Baden property:spouse ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q62024
P25
Q502895
USER
Which people have that one as mom ?
(c(Q502895),P25,Q62024)
action filter_type
action find_reverse
entity Q62024
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q62024']
SELECT DISTINCT ?u WHERE { ?u property:P25 resource:Q62024 . ?u rdf:type ontology:Q502895 }
Stéphanie de Beauharnais
action filter_type
action find_reverse
entity Stéphanie de Beauharnais
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Stéphanie de Beauharnais']
SELECT DISTINCT ?u WHERE { ?u property:mother resource:Stéphanie_de_Beauharnais . ?u rdf:type ontology:common_name }
[]
common name
Q241173 Q62264 Q257596
SYSTEM
Princess Louise Amelie of Baden, Princess Marie Amelie of Baden, Princess Josephine of Baden
Q241173 Q62264 Q257596
(c(Q502895),P25,Q62024)
action filter_type
action find_reverse
entity Q62024
relation P25
type Q502895
[ANSWERS] have that one as mom
[{'concept': 'Q502895'}, 'P25', 'Q62024']
SELECT DISTINCT ?u WHERE { ?u property:P25 resource:Q62024 . ?u rdf:type ontology:Q502895 }
Princess Louise Amelie of Baden Princess Marie Amelie of Baden Princess Josephine of Baden
Princess Louise Amelie of Baden, Princess Marie Amelie of Baden and Princess Josephine of Baden have that one as mom
Princess Louise Amelie of Baden Princess Marie Amelie of Baden Princess Josephine of Baden
action filter_type
action find_reverse
entity Stéphanie de Beauharnais
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Stéphanie de Beauharnais']
SELECT DISTINCT ?u WHERE { ?u property:mother resource:Stéphanie_de_Beauharnais . ?u rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by atmost 1944 people ?
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1944
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?r <= 1944 ) }
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1944
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?r <= 1944 ) }
[]
musical instrument common name
SYSTEM
62
Q80284 Q46185 Q201129 Q424017 Q890073 Q80019 Q1178361 Q2563510 Q604538 Q2660670 Q39777 Q3574843 Q678090 Q81982 Q182718 Q490054 Q873588 Q593995 Q1327500 Q206987 Q1879664 Q189737 Q1759986 Q1798603 Q1099153 Q8338 Q120585 Q713298 Q8371 Q1024685 Q213461 Q3382191 Q816793 Q862501 Q213100 Q244976 Q537750 Q626035 Q1179017 Q742180 Q320341 Q1300012 Q748455 Q669370 Q290951 Q220971 Q178933 Q16875637 Q790468 Q1129422 Q379248 Q726306 Q173453 Q483994 Q744831 Q963150 Q16155191 Q644440 Q1343007 Q11404 Q497224 Q3623688
(c(Q502895),P1303,c(Q34379))
action count
action atmost
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1944
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:P1303 ?k . ?k rdf:type ontology:Q34379 . ?l rdf:type ontology:Q502895 } GROUP BY ?k } . FILTER ( ?r <= 1944 ) }
viola bass guitar lyre acoustic bass guitar Body percussion double bass davul steel-string acoustic guitar Temple block Irish bouzouki maraca tonbak Twelve-string guitar harpsichord Nyckelharpa Ondioline Jinghu player piano electronic musical instrument vibraphone spoon timpani Wurlitzer electric piano string instrument clavinet trumpet Tsuzumi geomungo cello cabasa harmonium upright piano Bendir ondes Martenot tabla bodhrán Djembe glockenspiel Daxophone viola d'amore celesta toy piano cajón gusle Kamancheh marimba Hardanger fiddle transverse flute baritone horn morin khuur Timbales erhu wind instrument Kazoo Mridangam tenor guitar Saraswati veena Lap steel guitar electronic keyboard drum Kayamb Paraguayan harp
62
action count
action atmost
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1944
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?l ) AS ?r ) WHERE { ?l property:instrument ?k . ?k rdf:type ontology:musical_instrument . ?l rdf:type ontology:common_name } GROUP BY ?k } . FILTER ( ?r <= 1944 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q241173
P9
Q502895
USER
Whose sister are Princess Louise Amelie of Baden ?
(c(Q502895),P9,Q241173)
action filter_type
action find
entity Q241173
relation P9
type Q502895
[{'concept': 'Q502895'}, 'P9', 'Q241173']
SELECT DISTINCT ?x WHERE { resource:Q241173 property:P9 ?x . ?x rdf:type ontology:Q502895 }
Princess Louise Amelie of Baden
action filter_type
action find
entity Princess Louise Amelie of Baden
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Princess Louise Amelie of Baden']
SELECT DISTINCT ?x WHERE { resource:Princess_Louise_Amelie_of_Baden property:sister ?x . ?x rdf:type ontology:common_name }
[]
common name
Q62264 Q257596
SYSTEM
Princess Marie Amelie of Baden, Princess Josephine of Baden
Q62264 Q257596
(c(Q502895),P9,Q241173)
action filter_type
action find
entity Q241173
relation P9
type Q502895
[ANSWERS] are Princess Louise Amelie of Baden
[{'concept': 'Q502895'}, 'P9', 'Q241173']
SELECT DISTINCT ?x WHERE { resource:Q241173 property:P9 ?x . ?x rdf:type ontology:Q502895 }
Princess Marie Amelie of Baden Princess Josephine of Baden
Princess Marie Amelie of Baden and Princess Josephine of Baden are Princess Louise Amelie of Baden
Princess Marie Amelie of Baden Princess Josephine of Baden
action filter_type
action find
entity Princess Louise Amelie of Baden
relation sister
type common name
[{'concept': 'common name'}, 'sister', 'Princess Louise Amelie of Baden']
SELECT DISTINCT ?x WHERE { resource:Princess_Louise_Amelie_of_Baden property:sister ?x . ?x rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q257596
P40
Q502895
USER
Who have that one as a child ?
(c(Q502895),P40,Q257596)
action filter_type
action find_reverse
entity Q257596
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q257596']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q257596 . ?f rdf:type ontology:Q502895 }
Princess Josephine of Baden
action filter_type
action find_reverse
entity Princess Josephine of Baden
relation child
type common name
[{'concept': 'common name'}, 'child', 'Princess Josephine of Baden']
SELECT DISTINCT ?f WHERE { ?f property:child resource:Princess_Josephine_of_Baden . ?f rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q62264
SYSTEM
Did you mean Princess Marie Amelie of Baden ?
Q62264 Q257596
(c(Q502895),P40,Q62264) (c(Q502895),P40,Q257596)
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q62264'] [{'concept': 'Q502895'}, 'P40', 'Q257596']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q257596 . ?f rdf:type ontology:Q502895 }
Princess Marie Amelie of Baden Princess Josephine of Baden
Did you mean Princess Marie Amelie of Baden ?
Princess Marie Amelie of Baden
[{'concept': 'common name'}, 'child', 'Princess Marie Amelie of Baden'] [{'concept': 'common name'}, 'child', 'Princess Josephine of Baden']
SELECT DISTINCT ?f WHERE { ?f property:child resource:Princess_Josephine_of_Baden . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Princess Josephine of Baden. Could you tell me the answer for that?
(c(Q502895),P40,Q257596)
Q257596
[{'concept': 'Q502895'}, 'P40', 'Q257596']
[{'concept': 'common name'}, 'child', 'Princess Josephine of Baden']
[]
Q57799 Q62024
SYSTEM
Charles, Grand Duke of Baden, Stéphanie de Beauharnais
Q57799 Q62024
(c(Q502895),P40,Q257596)
action filter_type
action find_reverse
entity Q257596
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q257596']
SELECT DISTINCT ?f WHERE { ?f property:P40 resource:Q257596 . ?f rdf:type ontology:Q502895 }
Charles, Grand Duke of Baden Stéphanie de Beauharnais
Charles, Grand Duke of Baden and Stéphanie de Beauharnais have that one as a child
Charles, Grand Duke of Baden Stéphanie de Beauharnais
action filter_type
action find_reverse
entity Princess Josephine of Baden
relation child
type common name
[{'concept': 'common name'}, 'child', 'Princess Josephine of Baden']
SELECT DISTINCT ?f WHERE { ?f property:child resource:Princess_Josephine_of_Baden . ?f rdf:type ontology:common_name }
[]