Simple Question (Direct)
Simple Question
Q2618388
P119
Q39614
USER
Which cemetery is the place of burial of Charles Louis Cadet de Gassicourt ?
(Q2618388,P119,c(Q39614))
action filter_type
action find
entity Q2618388
relation P119
type Q39614
['Q2618388', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?p WHERE { resource:Q2618388 property:P119 ?p . ?p rdf:type ontology:Q39614 }
Charles Louis Cadet de Gassicourt
action filter_type
action find
entity Charles Louis Cadet de Gassicourt
relation place of burial
type cemetery
['Charles Louis Cadet de Gassicourt', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?p WHERE { resource:Charles_Louis_Cadet_de_Gassicourt property:place_of_burial ?p . ?p rdf:type ontology:cemetery }
[]
cemetery
Q311
SYSTEM
Père Lachaise Cemetery
Q311
(Q2618388,P119,c(Q39614))
action filter_type
action find
entity Q2618388
relation P119
type Q39614
The [ANSWER] the place of burial of Charles Louis Cadet de Gassicourt
['Q2618388', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?p WHERE { resource:Q2618388 property:P119 ?p . ?p rdf:type ontology:Q39614 }
Père Lachaise Cemetery
The Père Lachaise Cemetery the place of burial of Charles Louis Cadet de Gassicourt
Père Lachaise Cemetery
action filter_type
action find
entity Charles Louis Cadet de Gassicourt
relation place of burial
type cemetery
['Charles Louis Cadet de Gassicourt', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?p WHERE { resource:Charles_Louis_Cadet_de_Gassicourt property:place_of_burial ?p . ?p rdf:type ontology:cemetery }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2618388
P106
Q12737077
USER
Which occupations are the professions of that person ?
(Q311,P106,c(Q12737077))
action filter_type
action find
entity Q2618388
relation P106
type Q12737077
['Q311', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2618388 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Charles Louis Cadet de Gassicourt
action filter_type
action find
entity Charles Louis Cadet de Gassicourt
relation occupation
type occupation
['Père Lachaise Cemetery', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Charles_Louis_Cadet_de_Gassicourt property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q36180 Q105186 Q593644
SYSTEM
writer, pharmacist, chemist
Q36180 Q105186 Q593644
(Q311,P106,c(Q12737077))
action filter_type
action find
entity Q2618388
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q311', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q2618388 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
writer pharmacist chemist
The professions of that person are writer, pharmacist and chemist
writer pharmacist chemist
action filter_type
action find
entity Charles Louis Cadet de Gassicourt
relation occupation
type occupation
['Père Lachaise Cemetery', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Charles_Louis_Cadet_de_Gassicourt property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16942238
P106
Q502895
USER
Do Salvador Talón Mascarell have a job as those occupations ?
(Q16942238,P106,Q36180) (Q16942238,P106,Q105186) (Q16942238,P106,Q593644)
action is_in
entity prev_answer
action find
entity Q16942238
relation P106
['Q16942238', 'P106', 'Q36180'] ['Q16942238', 'P106', 'Q105186'] ['Q16942238', 'P106', 'Q593644']
ASK WHERE { resource:Q16942238 property:P106 ?m . VALUES ( ?m ) { ( resource:Q36180 ) ( resource:Q105186 ) ( resource:Q593644 ) } }
Salvador Talón Mascarell
action is_in
entity prev_answer
action find
entity Salvador Talón Mascarell
relation occupation
['Salvador Talón Mascarell', 'occupation', 'writer'] ['Salvador Talón Mascarell', 'occupation', 'pharmacist'] ['Salvador Talón Mascarell', 'occupation', 'chemist']
ASK WHERE { resource:Salvador_Talón_Mascarell property:occupation ?m . VALUES ( ?m ) { ( resource:writer ) ( resource:pharmacist ) ( resource:chemist ) } }
[]
common name
SYSTEM
NO
(Q16942238,P106,Q36180) (Q16942238,P106,Q105186) (Q16942238,P106,Q593644)
action is_in
entity prev_answer
action find
entity Q16942238
relation P106
[ANSWER]
['Q16942238', 'P106', 'Q36180'] ['Q16942238', 'P106', 'Q105186'] ['Q16942238', 'P106', 'Q593644']
ASK WHERE { resource:Q16942238 property:P106 ?m . VALUES ( ?m ) { ( resource:Q36180 ) ( resource:Q105186 ) ( resource:Q593644 ) } }
No
action is_in
entity prev_answer
action find
entity Salvador Talón Mascarell
relation occupation
['Salvador Talón Mascarell', 'occupation', 'writer'] ['Salvador Talón Mascarell', 'occupation', 'pharmacist'] ['Salvador Talón Mascarell', 'occupation', 'chemist']
ASK WHERE { resource:Salvador_Talón_Mascarell property:occupation ?m . VALUES ( ?m ) { ( resource:writer ) ( resource:pharmacist ) ( resource:chemist ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q105186 Q614304
P425
Q1047113
USER
Is pharmacy associated with the field of occupation pharmacist ?
(Q105186,P425,Q614304)
action is_in
entity Q614304
action find
entity Q105186
relation P425
['Q105186', 'P425', 'Q614304']
ASK WHERE { resource:Q105186 property:P425 resource:Q614304 }
pharmacist pharmacy
action is_in
entity pharmacy
action find
entity pharmacist
relation field of this occupation
['pharmacist', 'field of this occupation', 'pharmacy']
ASK WHERE { resource:pharmacist property:field_of_this_occupation resource:pharmacy }
[]
special field
SYSTEM
YES
(Q105186,P425,Q614304)
action is_in
entity Q614304
action find
entity Q105186
relation P425
[ANSWER]
['Q105186', 'P425', 'Q614304']
ASK WHERE { resource:Q105186 property:P425 resource:Q614304 }
Yes
action is_in
entity pharmacy
action find
entity pharmacist
relation field of this occupation
['pharmacist', 'field of this occupation', 'pharmacy']
ASK WHERE { resource:pharmacist property:field_of_this_occupation resource:pharmacy }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q16970 Q44539
USER
Which people are the patron saints of approximately 22 churches or temples ?
(c(Q16970)|c(Q44539),P417,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
value 22
[[{'concept': 'Q16970'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?v ) WHERE { { ?r rdf:type ontology:Q502895 . ?z rdf:type ontology:Q16970 . ?z property:P417 ?r } UNION { ?z property:P417 ?r . ?z rdf:type ontology:Q44539 . ?r rdf:type ontology:Q502895 } } GROUP BY ?r } . FILTER ( ?v = 22 ) }
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
value 22
[[{'concept': 'church'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?v ) WHERE { { ?r rdf:type ontology:common_name . ?z rdf:type ontology:church . ?z property:patron_saint ?r } UNION { ?z property:patron_saint ?r . ?z rdf:type ontology:temple . ?r rdf:type ontology:common_name } } GROUP BY ?r } . FILTER ( ?v = 22 ) }
[]
common name church temple
Q40662 Q133704 Q44269
SYSTEM
John the Baptist, Martin of Tours, Saint Nicholas
Q133704 Q161775 Q48438 Q44269 Q40662
(c(Q16970)|c(Q44539),P417,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P417
type Q502895
type Q16970
action find_reverse_tuple_counts
relation P417
type Q502895
type Q44539
value 22
[ANSWERS] are the patron saints of approximately 22 churches or temples
[[{'concept': 'Q16970'}, {'concept': 'Q44539'}], 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?v ) WHERE { { ?r rdf:type ontology:Q502895 . ?z rdf:type ontology:Q16970 . ?z property:P417 ?r } UNION { ?z property:P417 ?r . ?z rdf:type ontology:Q44539 . ?r rdf:type ontology:Q502895 } } GROUP BY ?r } . FILTER ( ?v = 22 ) }
Martin of Tours Stephen Saint George Saint Nicholas John the Baptist
John the Baptist, Martin of Tours and Saint Nicholas are the patron saints of approximately 22 churches or temples
John the Baptist Martin of Tours Saint Nicholas
action approx
action union
action find_reverse_tuple_counts
relation patron saint
type common name
type church
action find_reverse_tuple_counts
relation patron saint
type common name
type temple
value 22
[[{'concept': 'church'}, {'concept': 'temple'}], 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?z ) AS ?v ) WHERE { { ?r rdf:type ontology:common_name . ?z rdf:type ontology:church . ?z property:patron_saint ?r } UNION { ?z property:patron_saint ?r . ?z rdf:type ontology:temple . ?r rdf:type ontology:common_name } } GROUP BY ?r } . FILTER ( ?v = 22 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P417
Q16970
USER
How many churches have that person as their patron saint ?
(c(Q16970),P417,Q40662)
[{'concept': 'Q16970'}, 'P417', 'Q40662']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q28914 resource:Q19077932 . ?z rdf:type ontology:Q23056934 }
[{'concept': 'church'}, 'patron saint', 'John the Baptist']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint resource:John_the_Baptist . ?z rdf:type ontology:church }
[]
church
Quantitative|Count|Single entity type|Clarification
Q133704
SYSTEM
Did you mean Martin of Tours ?
(c(Q16970),P417,Q40662) (c(Q16970),P417,Q133704) (c(Q16970),P417,Q44269)
[ANSWER]
[{'concept': 'Q16970'}, 'P417', 'Q40662'] [{'concept': 'Q16970'}, 'P417', 'Q133704'] [{'concept': 'Q16970'}, 'P417', 'Q44269']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q28914 resource:Q19077932 . ?z rdf:type ontology:Q23056934 }
Did you mean Martin of Tours ?
Martin of Tours
[{'concept': 'church'}, 'patron saint', 'John the Baptist'] [{'concept': 'church'}, 'patron saint', 'Martin of Tours'] [{'concept': 'church'}, 'patron saint', 'Saint Nicholas']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint resource:John_the_Baptist . ?z rdf:type ontology:church }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant John the Baptist. Could you tell me the answer for that?
(c(Q16970),P417,Q40662)
Q40662
[{'concept': 'Q16970'}, 'P417', 'Q40662']
[{'concept': 'church'}, 'patron saint', 'John the Baptist']
[]
SYSTEM
13
Q17592489 Q2617274 Q1107406 Q1107408 Q20478415 Q910211 Q84090 Q1048587 Q2994043 Q18155878 Q3395146 Q17496222 Q1636756
(c(Q16970),P417,Q40662)
[ANSWER]
[{'concept': 'Q16970'}, 'P417', 'Q40662']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q28914 resource:Q19077932 . ?z rdf:type ontology:Q23056934 }
St. Johann Baptist Maribor Cathedral Castle church in Szentendre Saint John the Baptist Church, Felsőszölnök Saint John the Baptist church in Szár Wrocław Cathedral Archbasilica of St. John Lateran St. John the Baptist Cathedral Church of St. Johns Saint John the Baptist Church (Siersdorf) Cathedral of St. John the Baptist Saint John the Baptist church in Balatonederics Chesme Church
13
[{'concept': 'church'}, 'patron saint', 'John the Baptist']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:patron_saint resource:John_the_Baptist . ?z rdf:type ontology:church }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q27677320 Q105186
P425 P921
Q1047113
USER
Which special fields have pharmacist as the associated fields of occupation or were the main subjects in the work Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain ?
OR((Q105186,P425,c(Q1047113)), (Q27677320,P921,c(Q1047113)))
action filter_type
action union
action find
entity Q105186
relation P425
action find
entity Q27677320
relation P921
type Q1047113
{'OR': [['Q105186', 'P425', {'concept': 'Q1047113'}], ['Q27677320', 'P921', {'concept': 'Q1047113'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q105186 property:P425 ?j } UNION { resource:Q27677320 property:P921 ?j } } . ?j rdf:type ontology:Q1047113 }
Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain pharmacist
action filter_type
action union
action find
entity pharmacist
relation field of this occupation
action find
entity Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain
relation main subject
type special field
{'OR': [['pharmacist', 'field of this occupation', {'concept': 'special field'}], ['Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain', 'main subject', {'concept': 'special field'}]]}
SELECT DISTINCT ?j WHERE { { { resource:pharmacist property:field_of_this_occupation ?j } UNION { resource:Antidotes_to_anthrax_lethal_factor_intoxication._Part_3:_Evaluation_of_core_structures_and_further_modifications_to_the_C2-side_chain property:main_subject ?j } } . ?j rdf:type ontology:special_field }
[]
special field
Q614304 Q11351
SYSTEM
pharmacy, organic chemistry
Q614304 Q11351
OR((Q105186,P425,c(Q1047113)), (Q27677320,P921,c(Q1047113)))
action filter_type
action union
action find
entity Q105186
relation P425
action find
entity Q27677320
relation P921
type Q1047113
[ANSWERS] have pharmacist as the associated fields of occupation or were the main subjects in the work Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain
{'OR': [['Q105186', 'P425', {'concept': 'Q1047113'}], ['Q27677320', 'P921', {'concept': 'Q1047113'}]]}
SELECT DISTINCT ?j WHERE { { { resource:Q105186 property:P425 ?j } UNION { resource:Q27677320 property:P921 ?j } } . ?j rdf:type ontology:Q1047113 }
pharmacy organic chemistry
Pharmacy and organic chemistry have pharmacist as the associated fields of occupation or were the main subjects in the work Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain
pharmacy organic chemistry
action filter_type
action union
action find
entity pharmacist
relation field of this occupation
action find
entity Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain
relation main subject
type special field
{'OR': [['pharmacist', 'field of this occupation', {'concept': 'special field'}], ['Antidotes to anthrax lethal factor intoxication. Part 3: Evaluation of core structures and further modifications to the C2-side chain', 'main subject', {'concept': 'special field'}]]}
SELECT DISTINCT ?j WHERE { { { resource:pharmacist property:field_of_this_occupation ?j } UNION { resource:Antidotes_to_anthrax_lethal_factor_intoxication._Part_3:_Evaluation_of_core_structures_and_further_modifications_to_the_C2-side_chain property:main_subject ?j } } . ?j rdf:type ontology:special_field }
[]
Clarification
Simple Question|Single Entity|Indirect
Q614304
P361
Q58778
USER
Which system is that special field a part of ?
(Q614304,P361,c(Q58778))
action filter_type
action find
entity Q614304
relation P361
type Q58778
['Q614304', 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?w WHERE { resource:Q614304 property:P361 ?w . ?w rdf:type ontology:Q58778 }
pharmacy
action filter_type
action find
entity pharmacy
relation part of
type system
['pharmacy', 'part of', {'concept': 'system'}]
SELECT DISTINCT ?w WHERE { resource:pharmacy property:part_of ?w . ?w rdf:type ontology:system }
[]
system
Clarification for simple ques.
Q11351
SYSTEM
Did you mean organic chemistry ?
Q614304 Q11351
(Q614304,P361,c(Q58778)) (Q11351,P361,c(Q58778))
[ANSWER]
['Q614304', 'P361', {'concept': 'Q58778'}] ['Q11351', 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?w WHERE { resource:Q614304 property:P361 ?w . ?w rdf:type ontology:Q58778 }
pharmacy organic chemistry
Did you mean organic chemistry ?
organic chemistry
['pharmacy', 'part of', {'concept': 'system'}] ['organic chemistry', 'part of', {'concept': 'system'}]
SELECT DISTINCT ?w WHERE { resource:pharmacy property:part_of ?w . ?w rdf:type ontology:system }
[]
Simple Question (Coreferenced)
USER
No, I meant pharmacy. Could you tell me the answer for that?
(Q614304,P361,c(Q58778))
Q614304
['Q614304', 'P361', {'concept': 'Q58778'}]
['pharmacy', 'part of', {'concept': 'system'}]
[]
Q8148
SYSTEM
industry
Q8148
(Q614304,P361,c(Q58778))
action filter_type
action find
entity Q614304
relation P361
type Q58778
The [ANSWER] is that special field a part of
['Q614304', 'P361', {'concept': 'Q58778'}]
SELECT DISTINCT ?w WHERE { resource:Q614304 property:P361 ?w . ?w rdf:type ontology:Q58778 }
industry
The industry is that special field a part of
industry
action filter_type
action find
entity pharmacy
relation part of
type system
['pharmacy', 'part of', {'concept': 'system'}]
SELECT DISTINCT ?w WHERE { resource:pharmacy property:part_of ?w . ?w rdf:type ontology:system }
[]