Simple Question (Direct)
Simple Question
Q1661577
P20
Q56061
USER
Where did the demise of Joelmir Beting occur ?
(Q1661577,P20,c(Q56061))
action filter_type
action find
entity Q1661577
relation P20
type Q56061
['Q1661577', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q1661577 property:P20 ?w }
Joelmir Beting
action filter_type
action find
entity Joelmir Beting
relation place of death
type administrative territorial entity
['Joelmir Beting', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Joelmir_Beting property:place_of_death ?w }
[]
administrative territorial entity
Q174
SYSTEM
São Paulo
Q174
(Q1661577,P20,c(Q56061))
action filter_type
action find
entity Q1661577
relation P20
type Q56061
The demise of Joelmir Beting occurred in [ANSWER]
['Q1661577', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q56061 . resource:Q1661577 property:P20 ?w }
São Paulo
The demise of Joelmir Beting occurred in São Paulo
São Paulo
action filter_type
action find
entity Joelmir Beting
relation place of death
type administrative territorial entity
['Joelmir Beting', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:administrative_territorial_entity . resource:Joelmir_Beting property:place_of_death ?w }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1661577
P509
Q2057971
USER
What lead to the death of that person ?
(Q174,P509,c(Q2057971))
action filter_type
action find
entity Q1661577
relation P509
type Q2057971
['Q174', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q1661577 property:P509 ?w . ?w rdf:type ontology:Q2057971 }
Joelmir Beting
action filter_type
action find
entity Joelmir Beting
relation cause of death
type health problem
['São Paulo', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Joelmir_Beting property:cause_of_death ?w . ?w rdf:type ontology:health_problem }
[]
health problem
Q644318
SYSTEM
vasculitis
Q644318
(Q174,P509,c(Q2057971))
action filter_type
action find
entity Q1661577
relation P509
type Q2057971
[ANSWER] lead to the death of that person
['Q174', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?w WHERE { resource:Q1661577 property:P509 ?w . ?w rdf:type ontology:Q2057971 }
vasculitis
Vasculitis lead to the death of that person
vasculitis
action filter_type
action find
entity Joelmir Beting
relation cause of death
type health problem
['São Paulo', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?w WHERE { resource:Joelmir_Beting property:cause_of_death ?w . ?w rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2057971 Q169872
USER
How many symptoms are caused by atleast 1 health problem ?
(c(Q169872),P828,c(Q2057971))
action count
action atleast
action find_tuple_counts
relation P828
type Q169872
type Q2057971
value 1
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?e ) WHERE { ?j property:P828 ?v . ?v rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q169872 } GROUP BY ?j } . FILTER ( ?e >= 1 ) }
action count
action atleast
action find_tuple_counts
relation has cause
type symptom
type health problem
value 1
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?e ) WHERE { ?j property:has_cause ?v . ?v rdf:type ontology:health_problem . ?j rdf:type ontology:symptom } GROUP BY ?j } . FILTER ( ?e >= 1 ) }
[]
health problem symptom
SYSTEM
3
Q4907742 Q7900395 Q1899331
(c(Q169872),P828,c(Q2057971))
action count
action atleast
action find_tuple_counts
relation P828
type Q169872
type Q2057971
value 1
[ANSWER]
[{'concept': 'Q169872'}, 'P828', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?e ) WHERE { ?j property:P828 ?v . ?v rdf:type ontology:Q2057971 . ?j rdf:type ontology:Q169872 } GROUP BY ?j } . FILTER ( ?e >= 1 ) }
Biliary pruritus Uremic pruritus mariske
3
action count
action atleast
action find_tuple_counts
relation has cause
type symptom
type health problem
value 1
[{'concept': 'symptom'}, 'has cause', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?v ) AS ?e ) WHERE { ?j property:has_cause ?v . ?v rdf:type ontology:health_problem . ?j rdf:type ontology:symptom } GROUP BY ?j } . FILTER ( ?e >= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q223557 Q2057971
USER
Which physical objects causes min number of health problems ?
(c(Q2057971),P828,Q130768)
action argmin
action find_reverse_tuple_counts
relation P828
type Q223557
type Q2057971
[{'concept': 'Q2057971'}, 'P828', 'Q130768']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P828 ?s . ?s rdf:type ontology:Q223557 . ?k rdf:type ontology:Q2057971 } GROUP BY ?s } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P828 ?t . ?t rdf:type ontology:Q223557 . ?a rdf:type ontology:Q2057971 } GROUP BY ?t } }
action argmin
action find_reverse_tuple_counts
relation has cause
type physical object
type health problem
[{'concept': 'health problem'}, 'has cause', 'smoke']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:has_cause ?s . ?s rdf:type ontology:physical_object . ?k rdf:type ontology:health_problem } GROUP BY ?s } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:has_cause ?t . ?t rdf:type ontology:physical_object . ?a rdf:type ontology:health_problem } GROUP BY ?t } }
[]
physical object health problem
Q609621 Q21058099 Q2362625
SYSTEM
MAPP gas, polychlorinated biphenyl with 54% chlorine, formalin
Q609621 Q21058099 Q2362625 Q202251 Q21057847 Q20966458 Q130768
(c(Q2057971),P828,Q130768)
action argmin
action find_reverse_tuple_counts
relation P828
type Q223557
type Q2057971
[ANSWERS] cause min number of health problems
[{'concept': 'Q2057971'}, 'P828', 'Q130768']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P828 ?s . ?s rdf:type ontology:Q223557 . ?k rdf:type ontology:Q2057971 } GROUP BY ?s } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:P828 ?t . ?t rdf:type ontology:Q223557 . ?a rdf:type ontology:Q2057971 } GROUP BY ?t } }
MAPP gas polychlorinated biphenyl with 54% chlorine formalin asphalt polychlorinated biphenyl with 42% chlorine Niax Catalyst ESN smoke
MAPP gas, polychlorinated biphenyl with 54% chlorine and formalin cause min number of health problems
MAPP gas polychlorinated biphenyl with 54% chlorine formalin
action argmin
action find_reverse_tuple_counts
relation has cause
type physical object
type health problem
[{'concept': 'health problem'}, 'has cause', 'smoke']
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:has_cause ?s . ?s rdf:type ontology:physical_object . ?k rdf:type ontology:health_problem } GROUP BY ?s } } . FILTER ( ?j = ?c ) . { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?j ) WHERE { ?a property:has_cause ?t . ?t rdf:type ontology:physical_object . ?a rdf:type ontology:health_problem } GROUP BY ?t } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1542
Q2057971 Q223557
USER
How many physical objects are the cause of lesser number of health problems than that physical object ?
(c(Q223557),P1542,c(Q2057971))
[{'concept': 'Q223557'}, 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q223557 . ?y rdf:type ontology:Q2057971 }
[{'concept': 'physical object'}, 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:physical_object . ?y rdf:type ontology:health_problem }
[]
health problem physical object
Comparative|Count over More/Less|Single entity type|Clarification
Q2362625
SYSTEM
Did you mean formalin ?
(c(Q223557),P1542,c(Q2057971))
[ANSWER]
[{'concept': 'Q223557'}, 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q223557 . ?y rdf:type ontology:Q2057971 }
Did you mean formalin ?
formalin
[{'concept': 'physical object'}, 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:physical_object . ?y rdf:type ontology:health_problem }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant MAPP gas. Could you tell me the answer for that?
(c(Q223557),P1542,c(Q2057971))
Q609621
[{'concept': 'Q223557'}, 'P1542', {'concept': 'Q2057971'}]
[{'concept': 'physical object'}, 'cause of', {'concept': 'health problem'}]
[]
SYSTEM
6
Q609621 Q21058099 Q2362625 Q202251 Q21057847 Q20966458
(c(Q223557),P1542,c(Q2057971))
[ANSWER]
[{'concept': 'Q223557'}, 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:P1542 ?y . ?z rdf:type ontology:Q223557 . ?y rdf:type ontology:Q2057971 }
MAPP gas polychlorinated biphenyl with 54% chlorine formalin asphalt polychlorinated biphenyl with 42% chlorine Niax Catalyst ESN
6
[{'concept': 'physical object'}, 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:cause_of ?y . ?z rdf:type ontology:physical_object . ?y rdf:type ontology:health_problem }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q644318
P2293
Q863908
USER
Which nucleic acid sequences have genetic connection with vasculitis ?
(Q644318,P2293,c(Q863908))
action filter_type
action find
entity Q644318
relation P2293
type Q863908
['Q644318', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ?c WHERE { resource:Q644318 property:P2293 ?c . ?c rdf:type ontology:Q863908 }
vasculitis
action filter_type
action find
entity vasculitis
relation genetic association
type nucleic acid sequence
['vasculitis', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?c WHERE { resource:vasculitis property:genetic_association ?c . ?c rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18033480 Q14863039 Q18048738
SYSTEM
TSC22D1, F8, ARHGAP18
Q18033480 Q14863039 Q18048738
(Q644318,P2293,c(Q863908))
action filter_type
action find
entity Q644318
relation P2293
type Q863908
[ANSWERS] have genetic connection with vasculitis
['Q644318', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ?c WHERE { resource:Q644318 property:P2293 ?c . ?c rdf:type ontology:Q863908 }
TSC22D1 F8 ARHGAP18
TSC22D1, F8 and ARHGAP18 have genetic connection with vasculitis
TSC22D1 F8 ARHGAP18
action filter_type
action find
entity vasculitis
relation genetic association
type nucleic acid sequence
['vasculitis', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?c WHERE { resource:vasculitis property:genetic_association ?c . ?c rdf:type ontology:nucleic_acid_sequence }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2093360
P2293
Q2057971
USER
Are sports injury genetically associated with those nucleic acid sequences ?
(Q2093360,P2293,Q18033480) (Q2093360,P2293,Q14863039) (Q2093360,P2293,Q18048738)
action is_in
entity prev_answer
action find
entity Q2093360
relation P2293
['Q2093360', 'P2293', 'Q18033480'] ['Q2093360', 'P2293', 'Q14863039'] ['Q2093360', 'P2293', 'Q18048738']
ASK WHERE { VALUES ( ?z ) { ( resource:Q18033480 ) ( resource:Q14863039 ) ( resource:Q18048738 ) } . resource:Q2093360 property:P2293 ?z }
sports injury
action is_in
entity prev_answer
action find
entity sports injury
relation genetic association
['sports injury', 'genetic association', 'TSC22D1'] ['sports injury', 'genetic association', 'F8'] ['sports injury', 'genetic association', 'ARHGAP18']
ASK WHERE { VALUES ( ?z ) { ( resource:TSC22D1 ) ( resource:F8 ) ( resource:ARHGAP18 ) } . resource:sports_injury property:genetic_association ?z }
[]
health problem
SYSTEM
NO
(Q2093360,P2293,Q18033480) (Q2093360,P2293,Q14863039) (Q2093360,P2293,Q18048738)
action is_in
entity prev_answer
action find
entity Q2093360
relation P2293
[ANSWER]
['Q2093360', 'P2293', 'Q18033480'] ['Q2093360', 'P2293', 'Q14863039'] ['Q2093360', 'P2293', 'Q18048738']
ASK WHERE { VALUES ( ?z ) { ( resource:Q18033480 ) ( resource:Q14863039 ) ( resource:Q18048738 ) } . resource:Q2093360 property:P2293 ?z }
No
action is_in
entity prev_answer
action find
entity sports injury
relation genetic association
['sports injury', 'genetic association', 'TSC22D1'] ['sports injury', 'genetic association', 'F8'] ['sports injury', 'genetic association', 'ARHGAP18']
ASK WHERE { VALUES ( ?z ) { ( resource:TSC22D1 ) ( resource:F8 ) ( resource:ARHGAP18 ) } . resource:sports_injury property:genetic_association ?z }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1661577 Q155 Q99966
P27
Q15617994
USER
Is Joelmir Beting a native of Brazil and Berbenno ?
(Q1661577,P27,Q155) (Q1661577,P27,Q99966)
action is_in
entity Q1661577
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q99966
relation P27
['Q1661577', 'P27', 'Q155'] ['Q1661577', 'P27', 'Q99966']
ASK WHERE { resource:Q1661577 property:P27 resource:Q99966 . resource:Q1661577 property:P27 resource:Q155 }
Joelmir Beting Brazil Berbenno
action is_in
entity Joelmir Beting
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity Berbenno
relation country of citizenship
['Joelmir Beting', 'country of citizenship', 'Brazil'] ['Joelmir Beting', 'country of citizenship', 'Berbenno']
ASK WHERE { resource:Joelmir_Beting property:country_of_citizenship resource:Berbenno . resource:Joelmir_Beting property:country_of_citizenship resource:Brazil }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1661577,P27,Q155) (Q1661577,P27,Q99966)
action is_in
entity Q1661577
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q99966
relation P27
[ANSWER]
['Q1661577', 'P27', 'Q155'] ['Q1661577', 'P27', 'Q99966']
ASK WHERE { resource:Q1661577 property:P27 resource:Q99966 . resource:Q1661577 property:P27 resource:Q155 }
YES and NO respectively
action is_in
entity Joelmir Beting
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity Berbenno
relation country of citizenship
['Joelmir Beting', 'country of citizenship', 'Brazil'] ['Joelmir Beting', 'country of citizenship', 'Berbenno']
ASK WHERE { resource:Joelmir_Beting property:country_of_citizenship resource:Berbenno . resource:Joelmir_Beting property:country_of_citizenship resource:Brazil }
[]