Simple Question (Direct)
Simple Question
Q66671
P40
Q502895
USER
Which people are children of Maria Elisabeth Lämmerhirt ?
(Q66671,P40,c(Q502895))
action filter_type
action find
entity Q66671
relation P40
type Q502895
['Q66671', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q66671 property:P40 ?p . ?p rdf:type ontology:Q502895 }
Maria Elisabeth Lämmerhirt
action filter_type
action find
entity Maria Elisabeth Lämmerhirt
relation child
type common name
['Maria Elisabeth Lämmerhirt', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Maria_Elisabeth_Lämmerhirt property:child ?p . ?p rdf:type ontology:common_name }
[]
common name
Q1339 Q1862395 Q539427
SYSTEM
Johann Sebastian Bach, Johann Christoph Bach III, Johann Jacob Bach
Q1339 Q1862395 Q539427
(Q66671,P40,c(Q502895))
action filter_type
action find
entity Q66671
relation P40
type Q502895
[ANSWERS]
['Q66671', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q66671 property:P40 ?p . ?p rdf:type ontology:Q502895 }
Johann Sebastian Bach Johann Christoph Bach III Johann Jacob Bach
Johann Sebastian Bach Johann Christoph Bach III Johann Jacob Bach
action filter_type
action find
entity Maria Elisabeth Lämmerhirt
relation child
type common name
['Maria Elisabeth Lämmerhirt', 'child', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Maria_Elisabeth_Lämmerhirt property:child ?p . ?p rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1862395
P22
Q502895
USER
Who was the dad of that one ?
(Q1862395,P22,c(Q502895))
action filter_type
action find
entity Q1862395
relation P22
type Q502895
['Q1862395', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q1862395 property:P22 ?h }
Johann Christoph Bach III
action filter_type
action find
entity Johann Christoph Bach III
relation father
type common name
['Johann Christoph Bach III', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Johann_Christoph_Bach_III property:father ?h }
[]
common name
Clarification for simple ques.
Q1339
SYSTEM
Did you mean Johann Sebastian Bach ?
Q1339 Q1862395 Q539427
(Q1339,P22,c(Q502895)) (Q1862395,P22,c(Q502895)) (Q539427,P22,c(Q502895))
[ANSWER]
['Q1339', 'P22', {'concept': 'Q502895'}] ['Q1862395', 'P22', {'concept': 'Q502895'}] ['Q539427', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q1862395 property:P22 ?h }
Johann Sebastian Bach Johann Christoph Bach III Johann Jacob Bach
Did you mean Johann Sebastian Bach ?
Johann Sebastian Bach
['Johann Sebastian Bach', 'father', {'concept': 'common name'}] ['Johann Christoph Bach III', 'father', {'concept': 'common name'}] ['Johann Jacob Bach', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Johann_Christoph_Bach_III property:father ?h }
[]
Simple Question (Coreferenced)
USER
No, I meant Johann Christoph Bach III. Could you tell me the answer for that?
(Q1862395,P22,c(Q502895))
Q1862395
['Q1862395', 'P22', {'concept': 'Q502895'}]
['Johann Christoph Bach III', 'father', {'concept': 'common name'}]
[]
Q309470
SYSTEM
Johann Ambrosius Bach
Q309470
(Q1862395,P22,c(Q502895))
action filter_type
action find
entity Q1862395
relation P22
type Q502895
[ANSWER]
['Q1862395', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q1862395 property:P22 ?h }
Johann Ambrosius Bach
Johann Ambrosius Bach
action filter_type
action find
entity Johann Christoph Bach III
relation father
type common name
['Johann Christoph Bach III', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Johann_Christoph_Bach_III property:father ?h }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q309470
P7
Q502895
USER
Who have that one as their brother ?
(Q309470,P7,c(Q502895))
action filter_type
action find
entity Q309470
relation P7
type Q502895
['Q309470', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q309470 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Johann Ambrosius Bach
action filter_type
action find
entity Johann Ambrosius Bach
relation brother
type common name
['Johann Ambrosius Bach', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Johann_Ambrosius_Bach property:brother ?w . ?w rdf:type ontology:common_name }
[]
common name
Q48345 Q5877731
SYSTEM
Johann Christoph Bach II, Georg Christoph Bach
Q48345 Q5877731
(Q309470,P7,c(Q502895))
action filter_type
action find
entity Q309470
relation P7
type Q502895
[ANSWERS]
['Q309470', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q309470 property:P7 ?w . ?w rdf:type ontology:Q502895 }
Johann Christoph Bach II Georg Christoph Bach
Johann Christoph Bach II Georg Christoph Bach
action filter_type
action find
entity Johann Ambrosius Bach
relation brother
type common name
['Johann Ambrosius Bach', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Johann_Ambrosius_Bach property:brother ?w . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q66671
P25 P21
Q502895
USER
Which people have Maria Elisabeth Lämmerhirt as a parent and have male as the sex ?
AND((c(Q502895),P25,Q66671), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q66671
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q66671'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P25 resource:Q66671 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
male Maria Elisabeth Lämmerhirt
action filter_type
action intersection
action find_reverse
entity Maria Elisabeth Lämmerhirt
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Maria Elisabeth Lämmerhirt'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:mother resource:Maria_Elisabeth_Lämmerhirt . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]
common name
Q1339 Q1862395 Q539427
SYSTEM
Johann Sebastian Bach, Johann Christoph Bach III, Johann Jacob Bach
Q1339 Q1862395 Q539427
AND((c(Q502895),P25,Q66671), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q66671
relation P25
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS]
{'AND': [[{'concept': 'Q502895'}, 'P25', 'Q66671'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?l WHERE { ?l property:P25 resource:Q66671 . ?l property:P21 resource:Q6581097 . ?l rdf:type ontology:Q502895 }
Johann Sebastian Bach Johann Christoph Bach III Johann Jacob Bach
Johann Sebastian Bach Johann Christoph Bach III Johann Jacob Bach
action filter_type
action intersection
action find_reverse
entity Maria Elisabeth Lämmerhirt
relation mother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'mother', 'Maria Elisabeth Lämmerhirt'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?l WHERE { ?l property:mother resource:Maria_Elisabeth_Lämmerhirt . ?l property:gender resource:male . ?l rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1339 Q1862395 Q539427
P40
Q502895
USER
Which people have Johann Sebastian Bach, Johann Christoph Bach III and Johann Jacob Bach as a child ?
(c(Q502895),P40,Q1339) (c(Q502895),P40,Q1862395) (c(Q502895),P40,Q539427)
action union
action filter_type
action find_reverse
entity Q1339
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1862395
relation P40
type Q502895
action filter_type
action find_reverse
entity Q539427
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q1339'] [{'concept': 'Q502895'}, 'P40', 'Q1862395'] [{'concept': 'Q502895'}, 'P40', 'Q539427']
SELECT DISTINCT ?u WHERE { { ?u property:P40 resource:Q1339 . ?u rdf:type ontology:Q502895 } UNION { ?u property:P40 resource:Q1862395 . ?u rdf:type ontology:Q502895 } }
Johann Sebastian Bach Johann Christoph Bach III Johann Jacob Bach
action union
action filter_type
action find_reverse
entity Johann Sebastian Bach
relation child
type common name
action filter_type
action find_reverse
entity Johann Christoph Bach III
relation child
type common name
action filter_type
action find_reverse
entity Johann Jacob Bach
relation child
type common name
[{'concept': 'common name'}, 'child', 'Johann Sebastian Bach'] [{'concept': 'common name'}, 'child', 'Johann Christoph Bach III'] [{'concept': 'common name'}, 'child', 'Johann Jacob Bach']
SELECT DISTINCT ?u WHERE { { ?u property:child resource:Johann_Sebastian_Bach . ?u rdf:type ontology:common_name } UNION { ?u property:child resource:Johann_Christoph_Bach_III . ?u rdf:type ontology:common_name } }
[]
common name
Q309470 Q309470 Q309470
SYSTEM
Johann Ambrosius Bach
Q309470 Q66671 Q309470 Q66671 Q309470 Q66671
(c(Q502895),P40,Q1339) (c(Q502895),P40,Q1862395) (c(Q502895),P40,Q539427)
action union
action filter_type
action find_reverse
entity Q1339
relation P40
type Q502895
action filter_type
action find_reverse
entity Q1862395
relation P40
type Q502895
action filter_type
action find_reverse
entity Q539427
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q1339'] [{'concept': 'Q502895'}, 'P40', 'Q1862395'] [{'concept': 'Q502895'}, 'P40', 'Q539427']
SELECT DISTINCT ?u WHERE { { ?u property:P40 resource:Q1339 . ?u rdf:type ontology:Q502895 } UNION { ?u property:P40 resource:Q1862395 . ?u rdf:type ontology:Q502895 } }
Johann Ambrosius Bach Maria Elisabeth Lämmerhirt Johann Ambrosius Bach Maria Elisabeth Lämmerhirt Johann Ambrosius Bach Maria Elisabeth Lämmerhirt
Johann Ambrosius Bach Johann Ambrosius Bach Johann Ambrosius Bach
action union
action filter_type
action find_reverse
entity Johann Sebastian Bach
relation child
type common name
action filter_type
action find_reverse
entity Johann Christoph Bach III
relation child
type common name
action filter_type
action find_reverse
entity Johann Jacob Bach
relation child
type common name
[{'concept': 'common name'}, 'child', 'Johann Sebastian Bach'] [{'concept': 'common name'}, 'child', 'Johann Christoph Bach III'] [{'concept': 'common name'}, 'child', 'Johann Jacob Bach']
SELECT DISTINCT ?u WHERE { { ?u property:child resource:Johann_Sebastian_Bach . ?u rdf:type ontology:common_name } UNION { ?u property:child resource:Johann_Christoph_Bach_III . ?u rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1339
P86
Q2031291
USER
Which releases are composed by Johann Sebastian Bach ?
(c(Q2031291),P86,Q1339)
action filter_type
action find_reverse
entity Q1339
relation P86
type Q2031291
[{'concept': 'Q2031291'}, 'P86', 'Q1339']
SELECT DISTINCT ?j WHERE { ?j property:P86 resource:Q1339 . ?j rdf:type ontology:Q2031291 }
Johann Sebastian Bach
action filter_type
action find_reverse
entity Johann Sebastian Bach
relation composer
type release
[{'concept': 'release'}, 'composer', 'Johann Sebastian Bach']
SELECT DISTINCT ?j WHERE { ?j property:composer resource:Johann_Sebastian_Bach . ?j rdf:type ontology:release }
[]
release
Q4838673 Q6104356 Q10304582
SYSTEM
Bach: The Goldberg Variations, J.S. Bach: Goldberg Variations, J.S. Bach
Q4838673 Q6104356 Q10304582
(c(Q2031291),P86,Q1339)
action filter_type
action find_reverse
entity Q1339
relation P86
type Q2031291
[ANSWERS]
[{'concept': 'Q2031291'}, 'P86', 'Q1339']
SELECT DISTINCT ?j WHERE { ?j property:P86 resource:Q1339 . ?j rdf:type ontology:Q2031291 }
Bach: The Goldberg Variations J.S. Bach: Goldberg Variations J.S. Bach
Bach: The Goldberg Variations J.S. Bach: Goldberg Variations J.S. Bach
action filter_type
action find_reverse
entity Johann Sebastian Bach
relation composer
type release
[{'concept': 'release'}, 'composer', 'Johann Sebastian Bach']
SELECT DISTINCT ?j WHERE { ?j property:composer resource:Johann_Sebastian_Bach . ?j rdf:type ontology:release }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1339
P1050
Q2057971
USER
Which health problem does Johann Sebastian Bach suffer from ?
(Q1339,P1050,c(Q2057971))
action filter_type
action find
entity Q1339
relation P1050
type Q2057971
['Q1339', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q1339 property:P1050 ?k . ?k rdf:type ontology:Q2057971 }
Johann Sebastian Bach
action filter_type
action find
entity Johann Sebastian Bach
relation medical condition
type health problem
['Johann Sebastian Bach', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:Johann_Sebastian_Bach property:medical_condition ?k . ?k rdf:type ontology:health_problem }
[]
health problem
Q10874
SYSTEM
blindness
Q10874
(Q1339,P1050,c(Q2057971))
action filter_type
action find
entity Q1339
relation P1050
type Q2057971
[ANSWER]
['Q1339', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?k WHERE { resource:Q1339 property:P1050 ?k . ?k rdf:type ontology:Q2057971 }
blindness
blindness
action filter_type
action find
entity Johann Sebastian Bach
relation medical condition
type health problem
['Johann Sebastian Bach', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?k WHERE { resource:Johann_Sebastian_Bach property:medical_condition ?k . ?k rdf:type ontology:health_problem }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q3290501
P941
Q502895 Q15850590 Q7725634
USER
How many people were greater number of theatrical genres or literary works inspired by than Margaret Kerry ?
(c(Q15850590)|c(Q7725634),P941,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q3290501
relation P941
type Q15850590
type Q7725634
[[{'concept': 'Q15850590'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?k WHERE { { ?o property:P941 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q15850590 } UNION { ?o property:P941 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P941 resource:Q3290501 . { { ?j rdf:type ontology:Q15850590 } UNION { ?j rdf:type ontology:Q7725634 } } } } . FILTER ( ?w > ?m ) }
Margaret Kerry
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Margaret Kerry
relation inspired by
type theatrical genre
type literary work
[[{'concept': 'theatrical genre'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?k WHERE { { ?o property:inspired_by ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:theatrical_genre } UNION { ?o property:inspired_by ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:literary_work } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:inspired_by resource:Margaret_Kerry . { { ?j rdf:type ontology:theatrical_genre } UNION { ?j rdf:type ontology:literary_work } } } } . FILTER ( ?w > ?m ) }
[]
common name theatrical genre literary work
SYSTEM
5
Q312502 Q3560424 Q273079 Q123075 Q2836532
(c(Q15850590)|c(Q7725634),P941,c(Q502895))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15850590
action find_reverse_tuple_counts
relation P941
type Q502895
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q3290501
relation P941
type Q15850590
type Q7725634
[ANSWER]
[[{'concept': 'Q15850590'}, {'concept': 'Q7725634'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?k WHERE { { ?o property:P941 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q15850590 } UNION { ?o property:P941 ?k . ?k rdf:type ontology:Q502895 . ?o rdf:type ontology:Q7725634 } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:P941 resource:Q3290501 . { { ?j rdf:type ontology:Q15850590 } UNION { ?j rdf:type ontology:Q7725634 } } } } . FILTER ( ?w > ?m ) }
Fiorello H. La Guardia Violet Gordon-Woodhouse Cab Calloway Robert Walser Alice Ayres
5
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type theatrical genre
action find_reverse_tuple_counts
relation inspired by
type common name
type literary work
action count
action filter_multi_types
action find_reverse
entity Margaret Kerry
relation inspired by
type theatrical genre
type literary work
[[{'concept': 'theatrical genre'}, {'concept': 'literary work'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?w ) ?k WHERE { { ?o property:inspired_by ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:theatrical_genre } UNION { ?o property:inspired_by ?k . ?k rdf:type ontology:common_name . ?o rdf:type ontology:literary_work } } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) WHERE { ?j property:inspired_by resource:Margaret_Kerry . { { ?j rdf:type ontology:theatrical_genre } UNION { ?j rdf:type ontology:literary_work } } } } . FILTER ( ?w > ?m ) }
[]