Simple Question (Direct)
Simple Question
Q433426
P26
Q502895
USER
Which person is the life partner of Princess Louise of Denmark ?
(Q433426,P26,c(Q502895))
action filter_type
action find
entity Q433426
relation P26
type Q502895
['Q433426', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q433426 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Princess Louise of Denmark
action filter_type
action find
entity Princess Louise of Denmark
relation spouse
type common name
['Princess Louise of Denmark', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Princess_Louise_of_Denmark property:spouse ?d . ?d rdf:type ontology:common_name }
[]
common name
Q699476
SYSTEM
Ernest Frederick III, Duke of Saxe-Hildburghausen
Q699476
(Q433426,P26,c(Q502895))
action filter_type
action find
entity Q433426
relation P26
type Q502895
[ANSWER] is the life partner of Princess Louise of Denmark
['Q433426', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { resource:Q433426 property:P26 ?d . ?d rdf:type ontology:Q502895 }
Ernest Frederick III, Duke of Saxe-Hildburghausen
Ernest Frederick III, Duke of Saxe-Hildburghausen is the life partner of Princess Louise of Denmark
Ernest Frederick III, Duke of Saxe-Hildburghausen
action filter_type
action find
entity Princess Louise of Denmark
relation spouse
type common name
['Princess Louise of Denmark', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { resource:Princess_Louise_of_Denmark property:spouse ?d . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q699476
P7
Q502895
USER
Who are that one a brother of ?
(c(Q502895),P7,Q699476)
action filter_type
action find_reverse
entity Q699476
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q699476']
SELECT DISTINCT ?r WHERE { ?r property:P7 resource:Q699476 . ?r rdf:type ontology:Q502895 }
Ernest Frederick III, Duke of Saxe-Hildburghausen
action filter_type
action find_reverse
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Ernest Frederick III, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?r WHERE { ?r property:brother resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen . ?r rdf:type ontology:common_name }
[]
common name
Q453215 Q829170
SYSTEM
Amalie of Saxe-Hildburghausen, Prince Eugene of Saxe-Hildburghausen
Q453215 Q829170
(c(Q502895),P7,Q699476)
action filter_type
action find_reverse
entity Q699476
relation P7
type Q502895
That one a brother of are Princess [ANSWERS]
[{'concept': 'Q502895'}, 'P7', 'Q699476']
SELECT DISTINCT ?r WHERE { ?r property:P7 resource:Q699476 . ?r rdf:type ontology:Q502895 }
Amalie of Saxe-Hildburghausen Prince Eugene of Saxe-Hildburghausen
That one a brother of are Princess Amalie of Saxe-Hildburghausen and Prince Eugene of Saxe-Hildburghausen
Amalie of Saxe-Hildburghausen Prince Eugene of Saxe-Hildburghausen
action filter_type
action find_reverse
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Ernest Frederick III, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?r WHERE { ?r property:brother resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen . ?r rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q699476
P40
Q502895
USER
Which people have Ernest Frederick III, Duke of Saxe-Hildburghausen as an offspring ?
(c(Q502895),P40,Q699476)
action filter_type
action find_reverse
entity Q699476
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q699476']
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q699476 . ?j rdf:type ontology:Q502895 }
Ernest Frederick III, Duke of Saxe-Hildburghausen
action filter_type
action find_reverse
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ernest Frederick III, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?j WHERE { ?j property:child resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen . ?j rdf:type ontology:common_name }
[]
common name
Q203579 Q570512
SYSTEM
Countess Caroline of Erbach-Fürstenau, Ernst Frederick II, Duke of Saxe-Hildburghausen
Q203579 Q570512
(c(Q502895),P40,Q699476)
action filter_type
action find_reverse
entity Q699476
relation P40
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P40', 'Q699476']
SELECT DISTINCT ?j WHERE { ?j property:P40 resource:Q699476 . ?j rdf:type ontology:Q502895 }
Countess Caroline of Erbach-Fürstenau Ernst Frederick II, Duke of Saxe-Hildburghausen
Countess Caroline of Erbach-Fürstenau and Ernst Frederick II, Duke of Saxe-Hildburghausen have Ernest Frederick III, Duke of Saxe-Hildburghausen as an offspring
Countess Caroline of Erbach-Fürstenau Ernst Frederick II, Duke of Saxe-Hildburghausen
action filter_type
action find_reverse
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ernest Frederick III, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?j WHERE { ?j property:child resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen . ?j rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q570512
P22
Q502895
USER
Who have that one as a father ?
(c(Q502895),P22,Q570512)
action filter_type
action find_reverse
entity Q570512
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q570512']
SELECT DISTINCT ?z WHERE { ?z property:P22 resource:Q570512 . ?z rdf:type ontology:Q502895 }
Ernst Frederick II, Duke of Saxe-Hildburghausen
action filter_type
action find_reverse
entity Ernst Frederick II, Duke of Saxe-Hildburghausen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernst Frederick II, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?z WHERE { ?z property:father resource:Ernst_Frederick_II,_Duke_of_Saxe-Hildburghausen . ?z rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q203579
SYSTEM
Did you mean Countess Caroline of Erbach-Fürstenau ?
Q203579 Q570512
(c(Q502895),P22,Q203579) (c(Q502895),P22,Q570512)
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q203579'] [{'concept': 'Q502895'}, 'P22', 'Q570512']
SELECT DISTINCT ?z WHERE { ?z property:P22 resource:Q570512 . ?z rdf:type ontology:Q502895 }
Countess Caroline of Erbach-Fürstenau Ernst Frederick II, Duke of Saxe-Hildburghausen
Did you mean Countess Caroline of Erbach-Fürstenau ?
Countess Caroline of Erbach-Fürstenau
[{'concept': 'common name'}, 'father', 'Countess Caroline of Erbach-Fürstenau'] [{'concept': 'common name'}, 'father', 'Ernst Frederick II, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?z WHERE { ?z property:father resource:Ernst_Frederick_II,_Duke_of_Saxe-Hildburghausen . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Ernst Frederick II, Duke of Saxe-Hildburghausen. Could you tell me the answer for that?
(c(Q502895),P22,Q570512)
Q570512
[{'concept': 'Q502895'}, 'P22', 'Q570512']
[{'concept': 'common name'}, 'father', 'Ernst Frederick II, Duke of Saxe-Hildburghausen']
[]
Q699476 Q453215 Q829170
SYSTEM
Ernest Frederick III, Duke of Saxe-Hildburghausen, Amalie of Saxe-Hildburghausen, Prince Eugene of Saxe-Hildburghausen
Q699476 Q453215 Q829170
(c(Q502895),P22,Q570512)
action filter_type
action find_reverse
entity Q570512
relation P22
type Q502895
[ANSWERS] have that one as a father
[{'concept': 'Q502895'}, 'P22', 'Q570512']
SELECT DISTINCT ?z WHERE { ?z property:P22 resource:Q570512 . ?z rdf:type ontology:Q502895 }
Ernest Frederick III, Duke of Saxe-Hildburghausen Amalie of Saxe-Hildburghausen Prince Eugene of Saxe-Hildburghausen
Ernest Frederick III, Duke of Saxe-Hildburghausen, Amalie of Saxe-Hildburghausen and Prince Eugene of Saxe-Hildburghausen have that one as a father
Ernest Frederick III, Duke of Saxe-Hildburghausen Amalie of Saxe-Hildburghausen Prince Eugene of Saxe-Hildburghausen
action filter_type
action find_reverse
entity Ernst Frederick II, Duke of Saxe-Hildburghausen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernst Frederick II, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?z WHERE { ?z property:father resource:Ernst_Frederick_II,_Duke_of_Saxe-Hildburghausen . ?z rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q203579
P40
Q502895
USER
Do Countess Caroline of Erbach-Fürstenau have those ones as a child ?
(Q203579,P40,Q699476) (Q203579,P40,Q453215) (Q203579,P40,Q829170)
action is_in
entity prev_answer
action find
entity Q203579
relation P40
['Q203579', 'P40', 'Q699476'] ['Q203579', 'P40', 'Q453215'] ['Q203579', 'P40', 'Q829170']
ASK WHERE { resource:Q203579 property:P40 ?u . VALUES ( ?u ) { ( resource:Q699476 ) ( resource:Q453215 ) ( resource:Q829170 ) } }
Countess Caroline of Erbach-Fürstenau
action is_in
entity prev_answer
action find
entity Countess Caroline of Erbach-Fürstenau
relation child
['Countess Caroline of Erbach-Fürstenau', 'child', 'Ernest Frederick III, Duke of Saxe-Hildburghausen'] ['Countess Caroline of Erbach-Fürstenau', 'child', 'Amalie of Saxe-Hildburghausen'] ['Countess Caroline of Erbach-Fürstenau', 'child', 'Prince Eugene of Saxe-Hildburghausen']
ASK WHERE { resource:Countess_Caroline_of_Erbach-Fürstenau property:child ?u . VALUES ( ?u ) { ( resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen ) ( resource:Amalie_of_Saxe-Hildburghausen ) ( resource:Prince_Eugene_of_Saxe-Hildburghausen ) } }
[]
common name
SYSTEM
YES
(Q203579,P40,Q699476) (Q203579,P40,Q453215) (Q203579,P40,Q829170)
action is_in
entity prev_answer
action find
entity Q203579
relation P40
[ANSWER]
['Q203579', 'P40', 'Q699476'] ['Q203579', 'P40', 'Q453215'] ['Q203579', 'P40', 'Q829170']
ASK WHERE { resource:Q203579 property:P40 ?u . VALUES ( ?u ) { ( resource:Q699476 ) ( resource:Q453215 ) ( resource:Q829170 ) } }
Yes
action is_in
entity prev_answer
action find
entity Countess Caroline of Erbach-Fürstenau
relation child
['Countess Caroline of Erbach-Fürstenau', 'child', 'Ernest Frederick III, Duke of Saxe-Hildburghausen'] ['Countess Caroline of Erbach-Fürstenau', 'child', 'Amalie of Saxe-Hildburghausen'] ['Countess Caroline of Erbach-Fürstenau', 'child', 'Prince Eugene of Saxe-Hildburghausen']
ASK WHERE { resource:Countess_Caroline_of_Erbach-Fürstenau property:child ?u . VALUES ( ?u ) { ( resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen ) ( resource:Amalie_of_Saxe-Hildburghausen ) ( resource:Prince_Eugene_of_Saxe-Hildburghausen ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q699476 Q433426
P26
Q502895
USER
Is Princess Louise of Denmark married to Ernest Frederick III, Duke of Saxe-Hildburghausen ?
(Q699476,P26,Q433426)
action is_in
entity Q433426
action find
entity Q699476
relation P26
['Q699476', 'P26', 'Q433426']
ASK WHERE { resource:Q699476 property:P26 resource:Q433426 }
Ernest Frederick III, Duke of Saxe-Hildburghausen Princess Louise of Denmark
action is_in
entity Princess Louise of Denmark
action find
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation spouse
['Ernest Frederick III, Duke of Saxe-Hildburghausen', 'spouse', 'Princess Louise of Denmark']
ASK WHERE { resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen property:spouse resource:Princess_Louise_of_Denmark }
[]
common name
SYSTEM
YES
(Q699476,P26,Q433426)
action is_in
entity Q433426
action find
entity Q699476
relation P26
[ANSWER]
['Q699476', 'P26', 'Q433426']
ASK WHERE { resource:Q699476 property:P26 resource:Q433426 }
Yes
action is_in
entity Princess Louise of Denmark
action find
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation spouse
['Ernest Frederick III, Duke of Saxe-Hildburghausen', 'spouse', 'Princess Louise of Denmark']
ASK WHERE { resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen property:spouse resource:Princess_Louise_of_Denmark }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by min number of people ?
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?t } }
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?t } }
[]
musical instrument common name
Q1879664 Q748455 Q173453
SYSTEM
spoon, cajón, wind instrument
Q1879664 Q748455 Q173453
(c(Q502895),P1303,Q3623688)
action argmin
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWERS] are played by min number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P1303 ?n . ?n rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 } GROUP BY ?n } } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P1303 ?t . ?t rdf:type ontology:Q34379 . ?b rdf:type ontology:Q502895 } GROUP BY ?t } }
spoon cajón wind instrument
Spoon, cajón and wind instrument are played by min number of people
spoon cajón wind instrument
action argmin
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?f ) { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:instrument ?n . ?n rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name } GROUP BY ?n } } . FILTER ( ?m = ?f ) . { SELECT DISTINCT ?t ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:instrument ?t . ?t rdf:type ontology:musical_instrument . ?b rdf:type ontology:common_name } GROUP BY ?t } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q97991 Q203579
P25
Q502895
USER
Which people are the offspring of Countess Caroline of Erbach-Fürstenau or Anna Elisabeth of Anhalt-Bernburg ?
OR((c(Q502895),P25,Q203579), (c(Q502895),P25,Q97991))
action filter_type
action union
action find_reverse
entity Q203579
relation P25
action find_reverse
entity Q97991
relation P25
type Q502895
{'OR': [[{'concept': 'Q502895'}, 'P25', 'Q203579'], [{'concept': 'Q502895'}, 'P25', 'Q97991']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P25 resource:Q97991 } UNION { ?v property:P25 resource:Q203579 } } . ?v rdf:type ontology:Q502895 }
Anna Elisabeth of Anhalt-Bernburg Countess Caroline of Erbach-Fürstenau
action filter_type
action union
action find_reverse
entity Countess Caroline of Erbach-Fürstenau
relation mother
action find_reverse
entity Anna Elisabeth of Anhalt-Bernburg
relation mother
type common name
{'OR': [[{'concept': 'common name'}, 'mother', 'Countess Caroline of Erbach-Fürstenau'], [{'concept': 'common name'}, 'mother', 'Anna Elisabeth of Anhalt-Bernburg']]}
SELECT DISTINCT ?v WHERE { { { ?v property:mother resource:Anna_Elisabeth_of_Anhalt-Bernburg } UNION { ?v property:mother resource:Countess_Caroline_of_Erbach-Fürstenau } } . ?v rdf:type ontology:common_name }
[]
common name
Q108144 Q699476 Q453215 Q829170 Q18217260
SYSTEM
Louise Elisabeth of Württemberg-Oels, Ernest Frederick III, Duke of Saxe-Hildburghausen, Amalie of Saxe-Hildburghausen, Prince Eugene of Saxe-Hildburghausen, Sophie Angelika of Württemberg-Oels
Q108144 Q699476 Q453215 Q829170 Q18217260
OR((c(Q502895),P25,Q203579), (c(Q502895),P25,Q97991))
action filter_type
action union
action find_reverse
entity Q203579
relation P25
action find_reverse
entity Q97991
relation P25
type Q502895
[ANSWERS] are the offspring of Countess Caroline of Erbach-Fürstenau or Anna Elisabeth of Anhalt-Bernburg
{'OR': [[{'concept': 'Q502895'}, 'P25', 'Q203579'], [{'concept': 'Q502895'}, 'P25', 'Q97991']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P25 resource:Q97991 } UNION { ?v property:P25 resource:Q203579 } } . ?v rdf:type ontology:Q502895 }
Louise Elisabeth of Württemberg-Oels Ernest Frederick III, Duke of Saxe-Hildburghausen Amalie of Saxe-Hildburghausen Prince Eugene of Saxe-Hildburghausen Sophie Angelika of Württemberg-Oels
Louise Elisabeth of Württemberg-Oels, Ernest Frederick III, Duke of Saxe-Hildburghausen, Amalie of Saxe-Hildburghausen, Prince Eugene of Saxe-Hildburghausen and Sophie Angelika of Württemberg-Oels are the offspring of Countess Caroline of Erbach-Fürstenau or Anna Elisabeth of Anhalt-Bernburg
Louise Elisabeth of Württemberg-Oels Ernest Frederick III, Duke of Saxe-Hildburghausen Amalie of Saxe-Hildburghausen Prince Eugene of Saxe-Hildburghausen Sophie Angelika of Württemberg-Oels
action filter_type
action union
action find_reverse
entity Countess Caroline of Erbach-Fürstenau
relation mother
action find_reverse
entity Anna Elisabeth of Anhalt-Bernburg
relation mother
type common name
{'OR': [[{'concept': 'common name'}, 'mother', 'Countess Caroline of Erbach-Fürstenau'], [{'concept': 'common name'}, 'mother', 'Anna Elisabeth of Anhalt-Bernburg']]}
SELECT DISTINCT ?v WHERE { { { ?v property:mother resource:Anna_Elisabeth_of_Anhalt-Bernburg } UNION { ?v property:mother resource:Countess_Caroline_of_Erbach-Fürstenau } } . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P725
Q502895 Q1001378
USER
Which cinematic techniques have been dubbed by min number of people ?
(c(Q1001378),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q1001378
type Q502895
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?p ) WHERE { ?g property:P725 ?x . ?g rdf:type ontology:Q1001378 . ?x rdf:type ontology:Q502895 } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?w ) WHERE { ?r rdf:type ontology:Q1001378 . ?h rdf:type ontology:Q502895 . ?r property:P725 ?h } GROUP BY ?r } . FILTER ( ?w = ?y ) }
action argmin
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?p ) WHERE { ?g property:voice_actor ?x . ?g rdf:type ontology:cinematic_technique . ?x rdf:type ontology:common_name } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?w ) WHERE { ?r rdf:type ontology:cinematic_technique . ?h rdf:type ontology:common_name . ?r property:voice_actor ?h } GROUP BY ?r } . FILTER ( ?w = ?y ) }
[]
common name cinematic technique
Q14545073
SYSTEM
1912 film
Q14545073
(c(Q1001378),P725,c(Q502895))
action argmin
action find_tuple_counts
relation P725
type Q1001378
type Q502895
[ANSWER] have been dubbed by min number of people
[{'concept': 'Q1001378'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?p ) WHERE { ?g property:P725 ?x . ?g rdf:type ontology:Q1001378 . ?x rdf:type ontology:Q502895 } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?w ) WHERE { ?r rdf:type ontology:Q1001378 . ?h rdf:type ontology:Q502895 . ?r property:P725 ?h } GROUP BY ?r } . FILTER ( ?w = ?y ) }
1912 film
1912 film have been dubbed by min number of people
1912 film
action argmin
action find_tuple_counts
relation voice actor
type cinematic technique
type common name
[{'concept': 'cinematic technique'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?p ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?p ) WHERE { ?g property:voice_actor ?x . ?g rdf:type ontology:cinematic_technique . ?x rdf:type ontology:common_name } GROUP BY ?g } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?w ) WHERE { ?r rdf:type ontology:cinematic_technique . ?h rdf:type ontology:common_name . ?r property:voice_actor ?h } GROUP BY ?r } . FILTER ( ?w = ?y ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q699476
P22
Q502895
USER
Who have Ernest Frederick III, Duke of Saxe-Hildburghausen as a father ?
(c(Q502895),P22,Q699476)
action filter_type
action find_reverse
entity Q699476
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q699476']
SELECT DISTINCT ?y WHERE { ?y property:P22 resource:Q699476 . ?y rdf:type ontology:Q502895 }
Ernest Frederick III, Duke of Saxe-Hildburghausen
action filter_type
action find_reverse
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernest Frederick III, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?y WHERE { ?y property:father resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen . ?y rdf:type ontology:common_name }
[]
common name
Q442517 Q215903
SYSTEM
Princess Sophie of Saxe-Hildburghausen, Frederick, Duke of Saxe-Altenburg
Q442517 Q215903
(c(Q502895),P22,Q699476)
action filter_type
action find_reverse
entity Q699476
relation P22
type Q502895
[ANSWERS]
[{'concept': 'Q502895'}, 'P22', 'Q699476']
SELECT DISTINCT ?y WHERE { ?y property:P22 resource:Q699476 . ?y rdf:type ontology:Q502895 }
Princess Sophie of Saxe-Hildburghausen Frederick, Duke of Saxe-Altenburg
Princess Sophie of Saxe-Hildburghausen and Frederick, Duke of Saxe-Altenburg have Ernest Frederick III, Duke of Saxe-Hildburghausen as a father
Princess Sophie of Saxe-Hildburghausen Frederick, Duke of Saxe-Altenburg
action filter_type
action find_reverse
entity Ernest Frederick III, Duke of Saxe-Hildburghausen
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ernest Frederick III, Duke of Saxe-Hildburghausen']
SELECT DISTINCT ?y WHERE { ?y property:father resource:Ernest_Frederick_III,_Duke_of_Saxe-Hildburghausen . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q215903
P140
Q874405
USER
What is the religious affiliation of Frederick, Duke of Saxe-Altenburg ?
(Q215903,P140,c(Q874405))
action filter_type
action find
entity Q215903
relation P140
type Q874405
['Q215903', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { resource:Q215903 property:P140 ?n . ?n rdf:type ontology:Q874405 }
Frederick, Duke of Saxe-Altenburg
action filter_type
action find
entity Frederick, Duke of Saxe-Altenburg
relation religion
type social group
['Frederick, Duke of Saxe-Altenburg', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { resource:Frederick,_Duke_of_Saxe-Altenburg property:religion ?n . ?n rdf:type ontology:social_group }
[]
social group
Q75809
SYSTEM
Lutheranism
Q75809
(Q215903,P140,c(Q874405))
action filter_type
action find
entity Q215903
relation P140
type Q874405
The religious affiliation of Frederick , Duke of Saxe-Altenburg is Protestant [ANSWER]
['Q215903', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { resource:Q215903 property:P140 ?n . ?n rdf:type ontology:Q874405 }
Lutheranism
The religious affiliation of Frederick , Duke of Saxe-Altenburg is Protestant Lutheranism
Lutheranism
action filter_type
action find
entity Frederick, Duke of Saxe-Altenburg
relation religion
type social group
['Frederick, Duke of Saxe-Altenburg', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { resource:Frederick,_Duke_of_Saxe-Altenburg property:religion ?n . ?n rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q215903
P21
Q290
USER
Which sex does that person have ?
(Q75809,P21,c(Q290))
action filter_type
action find
entity Q215903
relation P21
type Q290
['Q75809', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q215903 property:P21 ?n . ?n rdf:type ontology:Q290 }
Frederick, Duke of Saxe-Altenburg
action filter_type
action find
entity Frederick, Duke of Saxe-Altenburg
relation gender
type sex
['Lutheranism', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Frederick,_Duke_of_Saxe-Altenburg property:gender ?n . ?n rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q75809,P21,c(Q290))
action filter_type
action find
entity Q215903
relation P21
type Q290
That person has a [ANSWER]
['Q75809', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?n WHERE { resource:Q215903 property:P21 ?n . ?n rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Frederick, Duke of Saxe-Altenburg
relation gender
type sex
['Lutheranism', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?n WHERE { resource:Frederick,_Duke_of_Saxe-Altenburg property:gender ?n . ?n rdf:type ontology:sex }
[]