Simple Question (Direct)
Simple Question
Q123927
P21
Q290
USER
What is the sex of Guido Fanconi ?
(Q123927,P21,c(Q290))
action filter_type
action find
entity Q123927
relation P21
type Q290
['Q123927', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q123927 property:P21 ?f . ?f rdf:type ontology:Q290 }
Guido Fanconi
action filter_type
action find
entity Guido Fanconi
relation gender
type sex
['Guido Fanconi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Guido_Fanconi property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q123927,P21,c(Q290))
action filter_type
action find
entity Q123927
relation P21
type Q290
The sex of Guido Fanconi is the [ANSWER]
['Q123927', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q123927 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
The sex of Guido Fanconi is the male
male
action filter_type
action find
entity Guido Fanconi
relation gender
type sex
['Guido Fanconi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Guido_Fanconi property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q123927
P138
Q2057971
USER
Which health problem comes from Guido Fanconi ?
(c(Q2057971),P138,Q123927)
action filter_type
action find_reverse
entity Q123927
relation P138
type Q2057971
[{'concept': 'Q2057971'}, 'P138', 'Q123927']
SELECT DISTINCT ?c WHERE { ?c property:P138 resource:Q123927 . ?c rdf:type ontology:Q2057971 }
Guido Fanconi
action filter_type
action find_reverse
entity Guido Fanconi
relation named after
type health problem
[{'concept': 'health problem'}, 'named after', 'Guido Fanconi']
SELECT DISTINCT ?c WHERE { ?c property:named_after resource:Guido_Fanconi . ?c rdf:type ontology:health_problem }
[]
health problem
Q1179460
SYSTEM
Fanconi syndrome
Q1179460
(c(Q2057971),P138,Q123927)
action filter_type
action find_reverse
entity Q123927
relation P138
type Q2057971
It [ANSWER] comes from Guido Fanconi
[{'concept': 'Q2057971'}, 'P138', 'Q123927']
SELECT DISTINCT ?c WHERE { ?c property:P138 resource:Q123927 . ?c rdf:type ontology:Q2057971 }
Fanconi syndrome
It Fanconi syndrome comes from Guido Fanconi
Fanconi syndrome
action filter_type
action find_reverse
entity Guido Fanconi
relation named after
type health problem
[{'concept': 'health problem'}, 'named after', 'Guido Fanconi']
SELECT DISTINCT ?c WHERE { ?c property:named_after resource:Guido_Fanconi . ?c rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1179460
P1995
Q1047113
USER
Which special field is the medical specality concerned with that health problem ?
(Q1179460,P1995,c(Q1047113))
action filter_type
action find
entity Q1179460
relation P1995
type Q1047113
['Q1179460', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1047113 . resource:Q1179460 property:P1995 ?a }
Fanconi syndrome
action filter_type
action find
entity Fanconi syndrome
relation medical specialty
type special field
['Fanconi syndrome', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:special_field . resource:Fanconi_syndrome property:medical_specialty ?a }
[]
special field
Q162606
SYSTEM
endocrinology
Q162606
(Q1179460,P1995,c(Q1047113))
action filter_type
action find
entity Q1179460
relation P1995
type Q1047113
[ANSWER] is the medical specality concerned with that health problem
['Q1179460', 'P1995', {'concept': 'Q1047113'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q1047113 . resource:Q1179460 property:P1995 ?a }
endocrinology
Endocrinology is the medical specality concerned with that health problem
endocrinology
action filter_type
action find
entity Fanconi syndrome
relation medical specialty
type special field
['Fanconi syndrome', 'medical specialty', {'concept': 'special field'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:special_field . resource:Fanconi_syndrome property:medical_specialty ?a }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1070350 Q1179460
P161 P138
Q502895
USER
Which people are Fanconi syndrome named after or starred in Cherry 2000 ?
OR((Q1179460,P138,c(Q502895)), (Q1070350,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1179460
relation P138
action find
entity Q1070350
relation P161
type Q502895
{'OR': [['Q1179460', 'P138', {'concept': 'Q502895'}], ['Q1070350', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1179460 property:P138 ?b } UNION { resource:Q1070350 property:P161 ?b } } . ?b rdf:type ontology:Q502895 }
Cherry 2000 Fanconi syndrome
action filter_type
action union
action find
entity Fanconi syndrome
relation named after
action find
entity Cherry 2000
relation cast member
type common name
{'OR': [['Fanconi syndrome', 'named after', {'concept': 'common name'}], ['Cherry 2000', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Fanconi_syndrome property:named_after ?b } UNION { resource:Cherry_2000 property:cast_member ?b } } . ?b rdf:type ontology:common_name }
[]
common name
Q330801 Q1397312 Q349166 Q723780 Q2434326 Q3308078 Q176455 Q679987 Q123927 Q959829
SYSTEM
Some of them are David Andrews, Harry Carey, Ben Johnson, Brion James, Tim Thomerson, Michael C. Gwynne, Melanie Griffith, Marshall Bell, Guido Fanconi, Robert Z'Dar
Q679987 Q723780 Q3308078 Q446195 Q2434326 Q193048 Q349166 Q959829 Q123927 Q330801 Q176455 Q1397312
OR((Q1179460,P138,c(Q502895)), (Q1070350,P161,c(Q502895)))
action filter_type
action union
action find
entity Q1179460
relation P138
action find
entity Q1070350
relation P161
type Q502895
Fanconi syndrome are named starred George [ANSWERS]
{'OR': [['Q1179460', 'P138', {'concept': 'Q502895'}], ['Q1070350', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1179460 property:P138 ?b } UNION { resource:Q1070350 property:P161 ?b } } . ?b rdf:type ontology:Q502895 }
Marshall Bell Brion James Michael C. Gwynne Pamela Gidley Tim Thomerson Laurence Fishburne Ben Johnson Robert Z'Dar Guido Fanconi David Andrews Melanie Griffith Harry Carey
Fanconi syndrome are named starred George David Andrews, Harry Carey, Ben Johnson, Brion James, Tim Thomerson, Michael C. Gwynne, Melanie Griffith, Marshall Bell, Guido Fanconi and Robert Z'Dar
David Andrews Harry Carey Ben Johnson Brion James Tim Thomerson Michael C. Gwynne Melanie Griffith Marshall Bell Guido Fanconi Robert Z'Dar
action filter_type
action union
action find
entity Fanconi syndrome
relation named after
action find
entity Cherry 2000
relation cast member
type common name
{'OR': [['Fanconi syndrome', 'named after', {'concept': 'common name'}], ['Cherry 2000', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Fanconi_syndrome property:named_after ?b } UNION { resource:Cherry_2000 property:cast_member ?b } } . ?b rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q123927
P463
Q19335303
USER
Which organization was that person a member of ?
(Q123927,P463,c(Q19335303))
action filter_type
action find
entity Q123927
relation P463
type Q19335303
['Q123927', 'P463', {'concept': 'Q19335303'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q19335303 . resource:Q123927 property:P463 ?u }
Guido Fanconi
action filter_type
action find
entity Guido Fanconi
relation member of
type type of business entity in Germany
['Guido Fanconi', 'member of', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:type_of_business_entity_in_Germany . resource:Guido_Fanconi property:member_of ?u }
[]
type of business entity in Germany
Clarification for simple ques.
Q959829
SYSTEM
Did you mean Robert Z'Dar ?
Q330801 Q1397312 Q349166 Q723780 Q2434326 Q3308078 Q176455 Q679987 Q123927 Q959829
(Q330801,P463,c(Q19335303)) (Q1397312,P463,c(Q19335303)) (Q349166,P463,c(Q19335303)) (Q723780,P463,c(Q19335303)) (Q2434326,P463,c(Q19335303)) (Q3308078,P463,c(Q19335303)) (Q176455,P463,c(Q19335303)) (Q679987,P463,c(Q19335303)) (Q123927,P463,c(Q19335303)) (Q959829,P463,c(Q19335303))
[ANSWER]
['Q330801', 'P463', {'concept': 'Q19335303'}] ['Q1397312', 'P463', {'concept': 'Q19335303'}] ['Q349166', 'P463', {'concept': 'Q19335303'}] ['Q723780', 'P463', {'concept': 'Q19335303'}] ['Q2434326', 'P463', {'concept': 'Q19335303'}] ['Q3308078', 'P463', {'concept': 'Q19335303'}] ['Q176455', 'P463', {'concept': 'Q19335303'}] ['Q679987', 'P463', {'concept': 'Q19335303'}] ['Q123927', 'P463', {'concept': 'Q19335303'}] ['Q959829', 'P463', {'concept': 'Q19335303'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q19335303 . resource:Q123927 property:P463 ?u }
David Andrews Harry Carey Ben Johnson Brion James Tim Thomerson Michael C. Gwynne Melanie Griffith Marshall Bell Guido Fanconi Robert Z'Dar
Did you mean Robert Z'Dar ?
Robert Z'Dar
['David Andrews', 'member of', {'concept': 'type of business entity in Germany'}] ['Harry Carey', 'member of', {'concept': 'type of business entity in Germany'}] ['Ben Johnson', 'member of', {'concept': 'type of business entity in Germany'}] ['Brion James', 'member of', {'concept': 'type of business entity in Germany'}] ['Tim Thomerson', 'member of', {'concept': 'type of business entity in Germany'}] ['Michael C. Gwynne', 'member of', {'concept': 'type of business entity in Germany'}] ['Melanie Griffith', 'member of', {'concept': 'type of business entity in Germany'}] ['Marshall Bell', 'member of', {'concept': 'type of business entity in Germany'}] ['Guido Fanconi', 'member of', {'concept': 'type of business entity in Germany'}] ["Robert Z'Dar", 'member of', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:type_of_business_entity_in_Germany . resource:Guido_Fanconi property:member_of ?u }
[]
Simple Question (Coreferenced)
USER
No, I meant Guido Fanconi. Could you tell me the answer for that?
(Q123927,P463,c(Q19335303))
Q123927
['Q123927', 'P463', {'concept': 'Q19335303'}]
['Guido Fanconi', 'member of', {'concept': 'type of business entity in Germany'}]
[]
Q543804
SYSTEM
German Academy of Sciences Leopoldina
Q543804
(Q123927,P463,c(Q19335303))
action filter_type
action find
entity Q123927
relation P463
type Q19335303
The [ANSWER] was that person a member of
['Q123927', 'P463', {'concept': 'Q19335303'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q19335303 . resource:Q123927 property:P463 ?u }
German Academy of Sciences Leopoldina
The German Academy of Sciences Leopoldina was that person a member of
German Academy of Sciences Leopoldina
action filter_type
action find
entity Guido Fanconi
relation member of
type type of business entity in Germany
['Guido Fanconi', 'member of', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:type_of_business_entity_in_Germany . resource:Guido_Fanconi property:member_of ?u }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q11862829 Q336 Q1047113
USER
Which special fields are a component of max number of academic disciplines and sciences ?
(c(Q1047113),P361,c(Q11862829)|c(Q336))
action argmax
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q336
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q336'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { { ?r property:P361 ?o . ?o rdf:type ontology:Q11862829 . ?r rdf:type ontology:Q1047113 } UNION { ?r property:P361 ?o . ?r rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q336 } } GROUP BY ?r } . FILTER ( ?h = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?i ) { ( ontology:Q336 ) ( ontology:Q11862829 ) } . ?l rdf:type ?i } GROUP BY ?e } } }
action argmax
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type science
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'science'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { { ?r property:part_of ?o . ?o rdf:type ontology:academic_discipline . ?r rdf:type ontology:special_field } UNION { ?r property:part_of ?o . ?r rdf:type ontology:special_field . ?o rdf:type ontology:science } } GROUP BY ?r } . FILTER ( ?h = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?i ) { ( ontology:science ) ( ontology:academic_discipline ) } . ?l rdf:type ?i } GROUP BY ?e } } }
[]
academic discipline science special field
Q614304
SYSTEM
pharmacy
Q614304
(c(Q1047113),P361,c(Q11862829)|c(Q336))
action argmax
action union
action find_tuple_counts
relation P361
type Q1047113
type Q11862829
action find_tuple_counts
relation P361
type Q1047113
type Q336
[ANSWER] is a component of max number of academic disciplines and sciences
[{'concept': 'Q1047113'}, 'P361', [{'concept': 'Q11862829'}, {'concept': 'Q336'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { { ?r property:P361 ?o . ?o rdf:type ontology:Q11862829 . ?r rdf:type ontology:Q1047113 } UNION { ?r property:P361 ?o . ?r rdf:type ontology:Q1047113 . ?o rdf:type ontology:Q336 } } GROUP BY ?r } . FILTER ( ?h = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?i ) { ( ontology:Q336 ) ( ontology:Q11862829 ) } . ?l rdf:type ?i } GROUP BY ?e } } }
pharmacy
Pharmacy is a component of max number of academic disciplines and sciences
pharmacy
action argmax
action union
action find_tuple_counts
relation part of
type special field
type academic discipline
action find_tuple_counts
relation part of
type special field
type science
[{'concept': 'special field'}, 'part of', [{'concept': 'academic discipline'}, {'concept': 'science'}]]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?h ) WHERE { { ?r property:part_of ?o . ?o rdf:type ontology:academic_discipline . ?r rdf:type ontology:special_field } UNION { ?r property:part_of ?o . ?r rdf:type ontology:special_field . ?o rdf:type ontology:science } } GROUP BY ?r } . FILTER ( ?h = ?v ) . { SELECT DISTINCT ( MAX ( ?b ) AS ?v ) { SELECT DISTINCT ?e ( COUNT ( ?l ) AS ?b ) WHERE { VALUES ( ?i ) { ( ontology:science ) ( ontology:academic_discipline ) } . ?l rdf:type ?i } GROUP BY ?e } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q1860 Q959829
P161 P364
Q838948
USER
Which works of art have Robert Z'Dar in their star cast and were done in English language during their inception ?
AND((c(Q838948),P161,Q959829), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q959829
relation P161
action find_reverse
entity Q1860
relation P364
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q959829'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?m WHERE { ?m property:P364 resource:Q1860 . ?m property:P161 resource:Q959829 . ?m rdf:type ontology:Q838948 }
English Robert Z'Dar
action filter_type
action intersection
action find_reverse
entity Robert Z'Dar
relation cast member
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', "Robert Z'Dar"], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?m WHERE { ?m property:original_language_of_work resource:English . ?m property:cast_member resource:Robert_Z'Dar . ?m rdf:type ontology:work_of_art }
[]
work of art
Q3094471 Q7206411 Q5619376 Q7761270 Q5247332 Q571197 Q1219853 Q2626512 Q1571786 Q2617122
SYSTEM
Some of them are A Gnome Named Gnorm, Pocket Ninjas, Guns of El Chupacabra, The Rock n' Roll Cops, Death from Above, Tango & Cash, Mobsters, Maniac Cop III: Badge of Silence, Maniac Cop, Future War
Q1571786 Q1219853 Q7206411 Q5619376 Q3094471 Q7733936 Q7317290 Q2626512 Q5247332 Q571197 Q123097 Q7761270 Q2617122 Q1070350
AND((c(Q838948),P161,Q959829), (c(Q838948),P364,Q1860))
action filter_type
action intersection
action find_reverse
entity Q959829
relation P161
action find_reverse
entity Q1860
relation P364
type Q838948
[ANSWERS] have Robert Z'Dar in their star cast and were done in English language during their inception
{'AND': [[{'concept': 'Q838948'}, 'P161', 'Q959829'], [{'concept': 'Q838948'}, 'P364', 'Q1860']]}
SELECT DISTINCT ?m WHERE { ?m property:P364 resource:Q1860 . ?m property:P161 resource:Q959829 . ?m rdf:type ontology:Q838948 }
Maniac Cop Mobsters Pocket Ninjas Guns of El Chupacabra A Gnome Named Gnorm The Final Sanction Return to Frogtown Maniac Cop III: Badge of Silence Death from Above Tango & Cash Maniac Cop 2 The Rock n' Roll Cops Future War Cherry 2000
A Gnome Named Gnorm, Pocket Ninjas, Guns of El Chupacabra, The Rock n' Roll Cops, Death from Above, Tango & Cash, Mobsters, Maniac Cop III: Badge of Silence, Maniac Cop and Future War have Robert Z'Dar in their star cast and were done in English language during their inception
A Gnome Named Gnorm Pocket Ninjas Guns of El Chupacabra The Rock n' Roll Cops Death from Above Tango & Cash Mobsters Maniac Cop III: Badge of Silence Maniac Cop Future War
action filter_type
action intersection
action find_reverse
entity Robert Z'Dar
relation cast member
action find_reverse
entity English
relation original language of work
type work of art
{'AND': [[{'concept': 'work of art'}, 'cast member', "Robert Z'Dar"], [{'concept': 'work of art'}, 'original language of work', 'English']]}
SELECT DISTINCT ?m WHERE { ?m property:original_language_of_work resource:English . ?m property:cast_member resource:Robert_Z'Dar . ?m rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q123927
P106
Q12737077
USER
Which occupations are the professions of Guido Fanconi ?
(Q123927,P106,c(Q12737077))
action filter_type
action find
entity Q123927
relation P106
type Q12737077
['Q123927', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q123927 property:P106 ?n }
Guido Fanconi
action filter_type
action find
entity Guido Fanconi
relation occupation
type occupation
['Guido Fanconi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Guido_Fanconi property:occupation ?n }
[]
occupation
Q1919436 Q1622272
SYSTEM
pediatrician, university teacher
Q1919436 Q1622272
(Q123927,P106,c(Q12737077))
action filter_type
action find
entity Q123927
relation P106
type Q12737077
The professions of Guido Fanconi are a [ANSWERS]
['Q123927', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q12737077 . resource:Q123927 property:P106 ?n }
pediatrician university teacher
The professions of Guido Fanconi are a pediatrician and university teacher
pediatrician university teacher
action filter_type
action find
entity Guido Fanconi
relation occupation
type occupation
['Guido Fanconi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:occupation . resource:Guido_Fanconi property:occupation ?n }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q20744760
Q12737077
USER
And also tell me about Danie van der Merwe?
(Q20744760,P106,c(Q12737077))
action filter_type
action find
entity Q20744760
relation P106
type Q12737077
['Q20744760', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q20744760 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Danie van der Merwe
action filter_type
action find
entity Danie van der Merwe
relation occupation
type occupation
['Danie van der Merwe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Danie_van_der_Merwe property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q14089670
SYSTEM
rugby union player
Q14089670
(Q20744760,P106,c(Q12737077))
action filter_type
action find
entity Q20744760
relation P106
type Q12737077
[ANSWER]
['Q20744760', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q20744760 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
rugby union player
rugby union player
action filter_type
action find
entity Danie van der Merwe
relation occupation
type occupation
['Danie van der Merwe', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Danie_van_der_Merwe property:occupation ?e . ?e rdf:type ontology:occupation }
[]