Simple Question (Direct)
Simple Question
Q16491211
P509
Q2057971
USER
What was the cause of death of Antônio Batista Vieira ?
(Q16491211,P509,c(Q2057971))
action filter_type
action find
entity Q16491211
relation P509
type Q2057971
['Q16491211', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q16491211 property:P509 ?y }
Antônio Batista Vieira
action filter_type
action find
entity Antônio Batista Vieira
relation cause of death
type health problem
['Antônio Batista Vieira', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:Antônio_Batista_Vieira property:cause_of_death ?y }
[]
health problem
Q181754
SYSTEM
heart failure
Q181754
(Q16491211,P509,c(Q2057971))
action filter_type
action find
entity Q16491211
relation P509
type Q2057971
The cause of death of Antônio Batista Vieira was a [ANSWER]
['Q16491211', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q2057971 . resource:Q16491211 property:P509 ?y }
heart failure
The cause of death of Antônio Batista Vieira was a heart failure
heart failure
action filter_type
action find
entity Antônio Batista Vieira
relation cause of death
type health problem
['Antônio Batista Vieira', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:health_problem . resource:Antônio_Batista_Vieira property:cause_of_death ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16491211
P19
Q1048835
USER
Which political territory was that person born in ?
(Q181754,P19,c(Q1048835))
action filter_type
action find
entity Q16491211
relation P19
type Q1048835
['Q181754', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q16491211 property:P19 ?n }
Antônio Batista Vieira
action filter_type
action find
entity Antônio Batista Vieira
relation place of birth
type political territorial entity
['heart failure', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Antônio_Batista_Vieira property:place_of_birth ?n }
[]
political territorial entity
Q2068823
SYSTEM
Várzea Alegre
Q2068823
(Q181754,P19,c(Q1048835))
action filter_type
action find
entity Q16491211
relation P19
type Q1048835
That person was born in [ANSWER]
['Q181754', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q1048835 . resource:Q16491211 property:P19 ?n }
Várzea Alegre
That person was born in Várzea Alegre
Várzea Alegre
action filter_type
action find
entity Antônio Batista Vieira
relation place of birth
type political territorial entity
['heart failure', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:political_territorial_entity . resource:Antônio_Batista_Vieira property:place_of_birth ?n }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16491211
P119
Q1048835
USER
Which political territory is the resting place of that person ?
(Q2068823,P119,c(Q1048835))
action filter_type
action find
entity Q16491211
relation P119
type Q1048835
['Q2068823', 'P119', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . resource:Q16491211 property:P119 ?i }
Antônio Batista Vieira
action filter_type
action find
entity Antônio Batista Vieira
relation place of burial
type political territorial entity
['Várzea Alegre', 'place of burial', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . resource:Antônio_Batista_Vieira property:place_of_burial ?i }
[]
political territorial entity
Q2068823
SYSTEM
Várzea Alegre
Q2068823
(Q2068823,P119,c(Q1048835))
action filter_type
action find
entity Q16491211
relation P119
type Q1048835
[ANSWER] is the resting place of that person
['Q2068823', 'P119', {'concept': 'Q1048835'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q1048835 . resource:Q16491211 property:P119 ?i }
Várzea Alegre
Várzea Alegre is the resting place of that person
Várzea Alegre
action filter_type
action find
entity Antônio Batista Vieira
relation place of burial
type political territorial entity
['Várzea Alegre', 'place of burial', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:political_territorial_entity . resource:Antônio_Batista_Vieira property:place_of_burial ?i }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3384278 Q16491211
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Antônio Batista Vieira or Pierre Campmas ?
OR((Q16491211,P27,c(Q15617994)), (Q3384278,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16491211
relation P27
action find
entity Q3384278
relation P27
type Q15617994
{'OR': [['Q16491211', 'P27', {'concept': 'Q15617994'}], ['Q3384278', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { ?a property:P27 ?o . VALUES ( ?a ) { ( resource:Q16491211 ) ( resource:Q3384278 ) } } . ?o rdf:type ontology:Q15617994 }
Pierre Campmas Antônio Batista Vieira
action filter_type
action union
action find
entity Antônio Batista Vieira
relation country of citizenship
action find
entity Pierre Campmas
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Antônio Batista Vieira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Campmas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { ?a property:country_of_citizenship ?o . VALUES ( ?a ) { ( resource:Antônio_Batista_Vieira ) ( resource:Pierre_Campmas ) } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q142
SYSTEM
Brazil, France
Q155 Q142
OR((Q16491211,P27,c(Q15617994)), (Q3384278,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16491211
relation P27
action find
entity Q3384278
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Antônio Batista Vieira or Pierre Campmas
{'OR': [['Q16491211', 'P27', {'concept': 'Q15617994'}], ['Q3384278', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?o WHERE { { ?a property:P27 ?o . VALUES ( ?a ) { ( resource:Q16491211 ) ( resource:Q3384278 ) } } . ?o rdf:type ontology:Q15617994 }
Brazil France
Brazil and France are the countries of citizenship of Antônio Batista Vieira or Pierre Campmas
Brazil France
action filter_type
action union
action find
entity Antônio Batista Vieira
relation country of citizenship
action find
entity Pierre Campmas
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Antônio Batista Vieira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pierre Campmas', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?o WHERE { { ?a property:country_of_citizenship ?o . VALUES ( ?a ) { ( resource:Antônio_Batista_Vieira ) ( resource:Pierre_Campmas ) } } . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7279682
P840
Q166142
USER
Do Racing Hero have their narrative set in those administrative territories ?
(Q7279682,P840,Q155) (Q7279682,P840,Q142)
action is_in
entity prev_answer
action find
entity Q7279682
relation P840
['Q7279682', 'P840', 'Q155'] ['Q7279682', 'P840', 'Q142']
ASK WHERE { VALUES ( ?a ) { ( resource:Q155 ) ( resource:Q142 ) } . resource:Q7279682 property:P840 ?a }
Racing Hero
action is_in
entity prev_answer
action find
entity Racing Hero
relation narrative location
['Racing Hero', 'narrative location', 'Brazil'] ['Racing Hero', 'narrative location', 'France']
ASK WHERE { VALUES ( ?a ) { ( resource:Brazil ) ( resource:France ) } . resource:Racing_Hero property:narrative_location ?a }
[]
application
SYSTEM
YES
(Q7279682,P840,Q155) (Q7279682,P840,Q142)
action is_in
entity prev_answer
action find
entity Q7279682
relation P840
[ANSWER]
['Q7279682', 'P840', 'Q155'] ['Q7279682', 'P840', 'Q142']
ASK WHERE { VALUES ( ?a ) { ( resource:Q155 ) ( resource:Q142 ) } . resource:Q7279682 property:P840 ?a }
Yes
action is_in
entity prev_answer
action find
entity Racing Hero
relation narrative location
['Racing Hero', 'narrative location', 'Brazil'] ['Racing Hero', 'narrative location', 'France']
ASK WHERE { VALUES ( ?a ) { ( resource:Brazil ) ( resource:France ) } . resource:Racing_Hero property:narrative_location ?a }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q16491211 Q6801035
P27
Q15617994
USER
Does Antônio Batista Vieira belong to McDuffie County School District ?
(Q16491211,P27,Q6801035)
action is_in
entity Q6801035
action find
entity Q16491211
relation P27
['Q16491211', 'P27', 'Q6801035']
ASK WHERE { resource:Q16491211 property:P27 resource:Q6801035 }
Antônio Batista Vieira McDuffie County School District
action is_in
entity McDuffie County School District
action find
entity Antônio Batista Vieira
relation country of citizenship
['Antônio Batista Vieira', 'country of citizenship', 'McDuffie County School District']
ASK WHERE { resource:Antônio_Batista_Vieira property:country_of_citizenship resource:McDuffie_County_School_District }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q16491211,P27,Q6801035)
action is_in
entity Q6801035
action find
entity Q16491211
relation P27
[ANSWER]
['Q16491211', 'P27', 'Q6801035']
ASK WHERE { resource:Q16491211 property:P27 resource:Q6801035 }
No
action is_in
entity McDuffie County School District
action find
entity Antônio Batista Vieira
relation country of citizenship
['Antônio Batista Vieira', 'country of citizenship', 'McDuffie County School District']
ASK WHERE { resource:Antônio_Batista_Vieira property:country_of_citizenship resource:McDuffie_County_School_District }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16491211
P106
Q12737077
USER
What do that person do for a living ?
action filter_type
action find
entity Q16491211
relation P106
type Q12737077
SELECT DISTINCT ?q WHERE { resource:Q16491211 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
Antônio Batista Vieira
action filter_type
action find
entity Antônio Batista Vieira
relation occupation
type occupation
SELECT DISTINCT ?q WHERE { resource:Antônio_Batista_Vieira property:occupation ?q . ?q rdf:type ontology:occupation }
[]
occupation
Q82955 Q36180 Q42603
SYSTEM
politician, writer, priest
Q82955 Q36180 Q42603
action filter_type
action find
entity Q16491211
relation P106
type Q12737077
[ANSWERS] that person do for a living
SELECT DISTINCT ?q WHERE { resource:Q16491211 property:P106 ?q . ?q rdf:type ontology:Q12737077 }
politician writer priest
Politician, writer and priest that person do for a living
politician writer priest
action filter_type
action find
entity Antônio Batista Vieira
relation occupation
type occupation
SELECT DISTINCT ?q WHERE { resource:Antônio_Batista_Vieira property:occupation ?q . ?q rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation|Incomplete
Q20004148 Q16491211
P106
Q12737077
USER
But not Hege Ulstein
AND((Q16491211,P106,c(Q12737077)), NOT((Q20004148,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q16491211
relation P106
action find
entity Q20004148
relation P106
type Q12737077
{'AND': [['Q16491211', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q20004148', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q16491211 property:P106 ?a . MINUS { resource:Q20004148 property:P106 ?a } }
Hege Ulstein Antônio Batista Vieira
action filter_type
action difference
action find
entity Antônio Batista Vieira
relation occupation
action find
entity Hege Ulstein
relation occupation
type occupation
{'AND': [['Antônio Batista Vieira', 'occupation', {'concept': 'occupation'}], {'NOT': [['Hege Ulstein', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Antônio_Batista_Vieira property:occupation ?a . MINUS { resource:Hege_Ulstein property:occupation ?a } }
[]
occupation
Q82955 Q42603
SYSTEM
politician, priest
Q82955 Q42603
AND((Q16491211,P106,c(Q12737077)), NOT((Q20004148,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q16491211
relation P106
action find
entity Q20004148
relation P106
type Q12737077
[ANSWERS]
{'AND': [['Q16491211', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q20004148', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . resource:Q16491211 property:P106 ?a . MINUS { resource:Q20004148 property:P106 ?a } }
politician priest
politician priest
action filter_type
action difference
action find
entity Antônio Batista Vieira
relation occupation
action find
entity Hege Ulstein
relation occupation
type occupation
{'AND': [['Antônio Batista Vieira', 'occupation', {'concept': 'occupation'}], {'NOT': [['Hege Ulstein', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . resource:Antônio_Batista_Vieira property:occupation ?a . MINUS { resource:Hege_Ulstein property:occupation ?a } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q337567 Q15617994
USER
How many administrative territories are located next to atleast 11 watercourses or still waterss ?
(c(Q15617994),P206,c(Q355304)|c(Q337567))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q337567
value 11
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?y ) WHERE { { ?i property:P206 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q355304 } UNION { ?i property:P206 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q337567 } } GROUP BY ?i } . FILTER ( ?y >= 11 ) }
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
value 11
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?y ) WHERE { { ?i property:located_next_to_body_of_water ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:watercourse } UNION { ?i property:located_next_to_body_of_water ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:still_waters } } GROUP BY ?i } . FILTER ( ?y >= 11 ) }
[]
watercourse still waters designation for an administrative territorial entity
SYSTEM
1
Q36
(c(Q15617994),P206,c(Q355304)|c(Q337567))
action count
action atleast
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q337567
value 11
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q337567'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?y ) WHERE { { ?i property:P206 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q355304 } UNION { ?i property:P206 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q337567 } } GROUP BY ?i } . FILTER ( ?y >= 11 ) }
Poland
1
action count
action atleast
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type still waters
value 11
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'still waters'}]]
SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?k ) AS ?y ) WHERE { { ?i property:located_next_to_body_of_water ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:watercourse } UNION { ?i property:located_next_to_body_of_water ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:still_waters } } GROUP BY ?i } . FILTER ( ?y >= 11 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1542
Q2057971 Q223557 Q8386
USER
Which health problems are the effects of max number of physical objects and drugs ?
(c(Q223557)|c(Q8386),P1542,c(Q2057971))
action argmax
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q223557
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
[[{'concept': 'Q223557'}, {'concept': 'Q8386'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?f WHERE { VALUES ( ?w ) { ( ontology:Q8386 ) ( ontology:Q223557 ) } . ?d rdf:type ?w } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?r WHERE { VALUES ( ?h ) { ( ontology:Q223557 ) ( ontology:Q8386 ) } . ?j rdf:type ?h } GROUP BY ?r } . FILTER ( ?u = ?v ) }
action argmax
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type physical object
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
[[{'concept': 'physical object'}, {'concept': 'drug'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?f WHERE { VALUES ( ?w ) { ( ontology:drug ) ( ontology:physical_object ) } . ?d rdf:type ?w } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?r WHERE { VALUES ( ?h ) { ( ontology:physical_object ) ( ontology:drug ) } . ?j rdf:type ?h } GROUP BY ?r } . FILTER ( ?u = ?v ) }
[]
health problem physical object drug
Q5062120 Q5506384
SYSTEM
central nervous system depression, fruit allergy
Q5062120 Q5506384
(c(Q223557)|c(Q8386),P1542,c(Q2057971))
action argmax
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q223557
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
[ANSWERS] are the effects of max number of physical objects and drugs
[[{'concept': 'Q223557'}, {'concept': 'Q8386'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?f WHERE { VALUES ( ?w ) { ( ontology:Q8386 ) ( ontology:Q223557 ) } . ?d rdf:type ?w } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?r WHERE { VALUES ( ?h ) { ( ontology:Q223557 ) ( ontology:Q8386 ) } . ?j rdf:type ?h } GROUP BY ?r } . FILTER ( ?u = ?v ) }
central nervous system depression fruit allergy
Central nervous system depression and fruit allergy are the effects of max number of physical objects and drugs
central nervous system depression fruit allergy
action argmax
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type physical object
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
[[{'concept': 'physical object'}, {'concept': 'drug'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?x ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?d ) AS ?x ) ?f WHERE { VALUES ( ?w ) { ( ontology:drug ) ( ontology:physical_object ) } . ?d rdf:type ?w } GROUP BY ?f } } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?r WHERE { VALUES ( ?h ) { ( ontology:physical_object ) ( ontology:drug ) } . ?j rdf:type ?h } GROUP BY ?r } . FILTER ( ?u = ?v ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5506384
P828
Q223557
USER
What leads to that health problem ?
(Q5506384,P828,c(Q223557))
action filter_type
action find
entity Q5506384
relation P828
type Q223557
['Q5506384', 'P828', {'concept': 'Q223557'}]
SELECT DISTINCT ?k WHERE { resource:Q5506384 property:P828 ?k . ?k rdf:type ontology:Q223557 }
fruit allergy
action filter_type
action find
entity fruit allergy
relation has cause
type physical object
['fruit allergy', 'has cause', {'concept': 'physical object'}]
SELECT DISTINCT ?k WHERE { resource:fruit_allergy property:has_cause ?k . ?k rdf:type ontology:physical_object }
[]
physical object
Clarification for simple ques.
Q5062120
SYSTEM
Did you mean central nervous system depression ?
Q5062120 Q5506384
(Q5062120,P828,c(Q223557)) (Q5506384,P828,c(Q223557))
[ANSWER]
['Q5062120', 'P828', {'concept': 'Q223557'}] ['Q5506384', 'P828', {'concept': 'Q223557'}]
SELECT DISTINCT ?k WHERE { resource:Q5506384 property:P828 ?k . ?k rdf:type ontology:Q223557 }
central nervous system depression fruit allergy
Did you mean central nervous system depression ?
central nervous system depression
['central nervous system depression', 'has cause', {'concept': 'physical object'}] ['fruit allergy', 'has cause', {'concept': 'physical object'}]
SELECT DISTINCT ?k WHERE { resource:fruit_allergy property:has_cause ?k . ?k rdf:type ontology:physical_object }
[]
Simple Question (Coreferenced)
USER
No, I meant fruit allergy. Could you tell me the answer for that?
(Q5506384,P828,c(Q223557))
Q5506384
['Q5506384', 'P828', {'concept': 'Q223557'}]
['fruit allergy', 'has cause', {'concept': 'physical object'}]
[]
Q1364
SYSTEM
fruit
Q1364
(Q5506384,P828,c(Q223557))
action filter_type
action find
entity Q5506384
relation P828
type Q223557
[ANSWER] leads to that health problem
['Q5506384', 'P828', {'concept': 'Q223557'}]
SELECT DISTINCT ?k WHERE { resource:Q5506384 property:P828 ?k . ?k rdf:type ontology:Q223557 }
fruit
Fruit leads to that health problem
fruit
action filter_type
action find
entity fruit allergy
relation has cause
type physical object
['fruit allergy', 'has cause', {'concept': 'physical object'}]
SELECT DISTINCT ?k WHERE { resource:fruit_allergy property:has_cause ?k . ?k rdf:type ontology:physical_object }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P180
Q3305213
USER
How many paintings express that physical object ?
(c(Q3305213),P180,Q1364)
action count
action filter_type
action find_reverse
entity Q1364
relation P180
type Q3305213
[{'concept': 'Q3305213'}, 'P180', 'Q1364']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:P180 resource:Q1364 . ?b rdf:type ontology:Q3305213 }
action count
action filter_type
action find_reverse
entity fruit
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'fruit']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:depicts resource:fruit . ?b rdf:type ontology:painting }
[]
painting
SYSTEM
3
Q26972426 Q25541633 Q25541307
(c(Q3305213),P180,Q1364)
action count
action filter_type
action find_reverse
entity Q1364
relation P180
type Q3305213
[ANSWER]
[{'concept': 'Q3305213'}, 'P180', 'Q1364']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:P180 resource:Q1364 . ?b rdf:type ontology:Q3305213 }
Architectural Fantasy in the Style of Pompeii Le Goût La Vue
3
action count
action filter_type
action find_reverse
entity fruit
relation depicts
type painting
[{'concept': 'painting'}, 'depicts', 'fruit']
SELECT DISTINCT ( COUNT ( ?b ) AS ?q ) WHERE { ?b property:depicts resource:fruit . ?b rdf:type ontology:painting }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2068823
P17
Q15617994
USER
Which administrative territory is Várzea Alegre present in ?
(Q2068823,P17,c(Q15617994))
action filter_type
action find
entity Q2068823
relation P17
type Q15617994
['Q2068823', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q2068823 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Várzea Alegre
action filter_type
action find
entity Várzea Alegre
relation country
type designation for an administrative territorial entity
['Várzea Alegre', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Várzea_Alegre property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155
SYSTEM
Brazil
Q155
(Q2068823,P17,c(Q15617994))
action filter_type
action find
entity Q2068823
relation P17
type Q15617994
Várzea Alegre is in [ANSWER]
['Q2068823', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q2068823 property:P17 ?x . ?x rdf:type ontology:Q15617994 }
Brazil
Várzea Alegre is in Brazil
Brazil
action filter_type
action find
entity Várzea Alegre
relation country
type designation for an administrative territorial entity
['Várzea Alegre', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Várzea_Alegre property:country ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]