Simple Question (Direct)
Simple Question
Q4793502
P485
Q2668072
USER
Which is the location of archive of May Edward Chinn ?
(Q4793502,P485,c(Q2668072))
action filter_type
action find
entity Q4793502
relation P485
type Q2668072
['Q4793502', 'P485', {'concept': 'Q2668072'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2668072 . resource:Q4793502 property:P485 ?s }
May Edward Chinn
action filter_type
action find
entity May Edward Chinn
relation archives at
type collection
['May Edward Chinn', 'archives at', {'concept': 'collection'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:collection . resource:May_Edward_Chinn property:archives_at ?s }
[]
collection
Q219555
SYSTEM
New York Public Library
Q219555
(Q4793502,P485,c(Q2668072))
action filter_type
action find
entity Q4793502
relation P485
type Q2668072
The location of archive of May Edward Chinn is in [ANSWER]
['Q4793502', 'P485', {'concept': 'Q2668072'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q2668072 . resource:Q4793502 property:P485 ?s }
New York Public Library
The location of archive of May Edward Chinn is in New York Public Library
New York Public Library
action filter_type
action find
entity May Edward Chinn
relation archives at
type collection
['May Edward Chinn', 'archives at', {'concept': 'collection'}]
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:collection . resource:May_Edward_Chinn property:archives_at ?s }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q219555
P17
Q15617994
USER
Which administrative territory does that collection belong to ?
(Q219555,P17,c(Q15617994))
action filter_type
action find
entity Q219555
relation P17
type Q15617994
['Q219555', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q219555 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
New York Public Library
action filter_type
action find
entity New York Public Library
relation country
type designation for an administrative territorial entity
['New York Public Library', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:New_York_Public_Library property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q219555,P17,c(Q15617994))
action filter_type
action find
entity Q219555
relation P17
type Q15617994
That collection belongs to [ANSWER]
['Q219555', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q219555 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
United States of America
That collection belongs to United States of America
United States of America
action filter_type
action find
entity New York Public Library
relation country
type designation for an administrative territorial entity
['New York Public Library', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:New_York_Public_Library property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q6886881
P27
Q502895
USER
Is Norman Powell a citizen of that administrative territory ?
(Q6886881,P27,Q30)
action is_in
entity Q30
action find
entity Q6886881
relation P27
['Q6886881', 'P27', 'Q30']
ASK WHERE { resource:Q6886881 property:P27 resource:Q30 }
United States of America Norman Powell
action is_in
entity United States of America
action find
entity Norman Powell
relation country of citizenship
['Norman Powell', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Norman_Powell property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q6886881,P27,Q30)
action is_in
entity Q30
action find
entity Q6886881
relation P27
[ANSWER]
['Q6886881', 'P27', 'Q30']
ASK WHERE { resource:Q6886881 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Norman Powell
relation country of citizenship
['Norman Powell', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Norman_Powell property:country_of_citizenship resource:United_States_of_America }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q4793502
P69
Q159334 Q163740
USER
How many secondary schools and nonprofit organizations were May Edward Chinn educated ?
(Q4793502,P69,c(Q159334)) (Q4793502,P69,c(Q163740))
action count
action union
action filter_type
action find
entity Q4793502
relation P69
type Q159334
action filter_type
action find
entity Q4793502
relation P69
type Q163740
['Q4793502', 'P69', {'concept': 'Q159334'}] ['Q4793502', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:Q163740 ) ( ontology:Q159334 ) } . ?z rdf:type ?k }
May Edward Chinn
action count
action union
action filter_type
action find
entity May Edward Chinn
relation educated at
type secondary school
action filter_type
action find
entity May Edward Chinn
relation educated at
type nonprofit organization
['May Edward Chinn', 'educated at', {'concept': 'secondary school'}] ['May Edward Chinn', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:nonprofit_organization ) ( ontology:secondary_school ) } . ?z rdf:type ?k }
[]
secondary school nonprofit organization
SYSTEM
1 secondary schools and 2 nonprofit organizations
Q4944514 Q7691246 Q49088
(Q4793502,P69,c(Q159334)) (Q4793502,P69,c(Q163740))
action count
action union
action filter_type
action find
entity Q4793502
relation P69
type Q159334
action filter_type
action find
entity Q4793502
relation P69
type Q163740
[ANSWER]
['Q4793502', 'P69', {'concept': 'Q159334'}] ['Q4793502', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:Q163740 ) ( ontology:Q159334 ) } . ?z rdf:type ?k }
Bordentown School Teachers College Columbia University
1 secondary schools and 2 nonprofit organizations
action count
action union
action filter_type
action find
entity May Edward Chinn
relation educated at
type secondary school
action filter_type
action find
entity May Edward Chinn
relation educated at
type nonprofit organization
['May Edward Chinn', 'educated at', {'concept': 'secondary school'}] ['May Edward Chinn', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) WHERE { VALUES ( ?k ) { ( ontology:nonprofit_organization ) ( ontology:secondary_school ) } . ?z rdf:type ?k }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4793502
P101
Q12136
USER
Which field does May Edward Chinn belong to ?
(Q4793502,P101,c(Q12136))
action filter_type
action find
entity Q4793502
relation P101
type Q12136
['Q4793502', 'P101', {'concept': 'Q12136'}]
SELECT DISTINCT ?f WHERE { resource:Q4793502 property:P101 ?f . ?f rdf:type ontology:Q12136 }
May Edward Chinn
action filter_type
action find
entity May Edward Chinn
relation field of work
type disease
['May Edward Chinn', 'field of work', {'concept': 'disease'}]
SELECT DISTINCT ?f WHERE { resource:May_Edward_Chinn property:field_of_work ?f . ?f rdf:type ontology:disease }
[]
disease
Q12078
SYSTEM
cancer
Q12078
(Q4793502,P101,c(Q12136))
action filter_type
action find
entity Q4793502
relation P101
type Q12136
May Edward Chinn belongs to [ANSWER]
['Q4793502', 'P101', {'concept': 'Q12136'}]
SELECT DISTINCT ?f WHERE { resource:Q4793502 property:P101 ?f . ?f rdf:type ontology:Q12136 }
cancer
May Edward Chinn belongs to cancer
cancer
action filter_type
action find
entity May Edward Chinn
relation field of work
type disease
['May Edward Chinn', 'field of work', {'concept': 'disease'}]
SELECT DISTINCT ?f WHERE { resource:May_Edward_Chinn property:field_of_work ?f . ?f rdf:type ontology:disease }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4793502
P1050
Q2057971
USER
Which health problem does that person have ?
(Q12078,P1050,c(Q2057971))
action filter_type
action find
entity Q4793502
relation P1050
type Q2057971
['Q12078', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { resource:Q4793502 property:P1050 ?p . ?p rdf:type ontology:Q2057971 }
May Edward Chinn
action filter_type
action find
entity May Edward Chinn
relation medical condition
type health problem
['cancer', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { resource:May_Edward_Chinn property:medical_condition ?p . ?p rdf:type ontology:health_problem }
[]
health problem
Q938983
SYSTEM
osteomyelitis
Q938983
(Q12078,P1050,c(Q2057971))
action filter_type
action find
entity Q4793502
relation P1050
type Q2057971
That person has an [ANSWER]
['Q12078', 'P1050', {'concept': 'Q2057971'}]
SELECT DISTINCT ?p WHERE { resource:Q4793502 property:P1050 ?p . ?p rdf:type ontology:Q2057971 }
osteomyelitis
That person has an osteomyelitis
osteomyelitis
action filter_type
action find
entity May Edward Chinn
relation medical condition
type health problem
['cancer', 'medical condition', {'concept': 'health problem'}]
SELECT DISTINCT ?p WHERE { resource:May_Edward_Chinn property:medical_condition ?p . ?p rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q938983
P2175
Q8386
USER
Which drugs are used for treatment of that health problem ?
(c(Q8386),P2175,Q938983)
action filter_type
action find_reverse
entity Q938983
relation P2175
type Q8386
[{'concept': 'Q8386'}, 'P2175', 'Q938983']
SELECT DISTINCT ?d WHERE { ?d property:P2175 resource:Q938983 . ?d rdf:type ontology:Q8386 }
osteomyelitis
action filter_type
action find_reverse
entity osteomyelitis
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'osteomyelitis']
SELECT DISTINCT ?d WHERE { ?d property:medical_condition_treated resource:osteomyelitis . ?d rdf:type ontology:drug }
[]
drug
Q256602 Q422219 Q418725
SYSTEM
Ciprofloxacin, Cloxacillin, Oxacillin
Q2313471 Q422219 Q418725 Q1638852 Q256602
(c(Q8386),P2175,Q938983)
action filter_type
action find_reverse
entity Q938983
relation P2175
type Q8386
[ANSWERS] are used for treatment of that health problem
[{'concept': 'Q8386'}, 'P2175', 'Q938983']
SELECT DISTINCT ?d WHERE { ?d property:P2175 resource:Q938983 . ?d rdf:type ontology:Q8386 }
Dicloxacillin Cloxacillin Oxacillin Nafcillin Ciprofloxacin
Ciprofloxacin, Cloxacillin and Oxacillin are used for treatment of that health problem
Ciprofloxacin Cloxacillin Oxacillin
action filter_type
action find_reverse
entity osteomyelitis
relation medical condition treated
type drug
[{'concept': 'drug'}, 'medical condition treated', 'osteomyelitis']
SELECT DISTINCT ?d WHERE { ?d property:medical_condition_treated resource:osteomyelitis . ?d rdf:type ontology:drug }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q8386 Q838948 Q732577
USER
Which drugs were the main subjects of max number of works of art or publications 's work ?
(c(Q838948)|c(Q732577),P921,c(Q8386))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q838948
action find_reverse_tuple_counts
relation P921
type Q8386
type Q732577
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?g WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?i WHERE { { ?z property:P921 ?i . ?i rdf:type ontology:Q8386 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P921 ?i . ?i rdf:type ontology:Q8386 . ?z rdf:type ontology:Q732577 } } GROUP BY ?i } . FILTER ( ?w = ?r ) }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work of art
action find_reverse_tuple_counts
relation main subject
type drug
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?g WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:work_of_art ) ( ontology:publication ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?i WHERE { { ?z property:main_subject ?i . ?i rdf:type ontology:drug . ?z rdf:type ontology:work_of_art } UNION { ?z property:main_subject ?i . ?i rdf:type ontology:drug . ?z rdf:type ontology:publication } } GROUP BY ?i } . FILTER ( ?w = ?r ) }
[]
drug work of art publication
Q1997
SYSTEM
Carbon dioxide
Q1997
(c(Q838948)|c(Q732577),P921,c(Q8386))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q8386
type Q838948
action find_reverse_tuple_counts
relation P921
type Q8386
type Q732577
[ANSWER] was the main subjects of max number of works of art or publications 's work
[[{'concept': 'Q838948'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q8386'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?g WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:Q838948 ) ( ontology:Q732577 ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?i WHERE { { ?z property:P921 ?i . ?i rdf:type ontology:Q8386 . ?z rdf:type ontology:Q838948 } UNION { ?z property:P921 ?i . ?i rdf:type ontology:Q8386 . ?z rdf:type ontology:Q732577 } } GROUP BY ?i } . FILTER ( ?w = ?r ) }
Carbon dioxide
Carbon dioxide was the main subjects of max number of works of art or publications 's work
Carbon dioxide
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type drug
type work of art
action find_reverse_tuple_counts
relation main subject
type drug
type publication
[[{'concept': 'work of art'}, {'concept': 'publication'}], 'main subject', {'concept': 'drug'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( MAX ( ?u ) AS ?r ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?u ) ?g WHERE { ?j rdf:type ?f . VALUES ( ?f ) { ( ontology:work_of_art ) ( ontology:publication ) } } GROUP BY ?g } } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) ?i WHERE { { ?z property:main_subject ?i . ?i rdf:type ontology:drug . ?z rdf:type ontology:work_of_art } UNION { ?z property:main_subject ?i . ?i rdf:type ontology:drug . ?z rdf:type ontology:publication } } GROUP BY ?i } . FILTER ( ?w = ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q256602
P2175
Q2057971
USER
How many health problems are Ciprofloxacin a medication for ?
(Q256602,P2175,c(Q2057971))
action count
action filter_type
action find
entity Q256602
relation P2175
type Q2057971
['Q256602', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Q256602 property:P2175 ?o . ?o rdf:type ontology:Q2057971 }
Ciprofloxacin
action count
action filter_type
action find
entity Ciprofloxacin
relation medical condition treated
type health problem
['Ciprofloxacin', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Ciprofloxacin property:medical_condition_treated ?o . ?o rdf:type ontology:health_problem }
[]
health problem
SYSTEM
14
Q19597369 Q83319 Q938983 Q1435822 Q129104 Q221668 Q18558195 Q129279 Q183344 Q246084 Q372752 Q727028 Q683861 Q101896
(Q256602,P2175,c(Q2057971))
action count
action filter_type
action find
entity Q256602
relation P2175
type Q2057971
[ANSWER]
['Q256602', 'P2175', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Q256602 property:P2175 ?o . ?o rdf:type ontology:Q2057971 }
Gram-negative bacterial infection typhoid fever osteomyelitis neutropenia anthrax disease acute cystitis bacterial conjunctivitis dysentery sinusitis cystitis Prostatitis bacterial infectious disease campylobacteriosis gonorrhea
14
action count
action filter_type
action find
entity Ciprofloxacin
relation medical condition treated
type health problem
['Ciprofloxacin', 'medical condition treated', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { resource:Ciprofloxacin property:medical_condition_treated ?o . ?o rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q256602
P769
Q8386
USER
What do that one significantly interact with ?
action filter_type
action find_reverse
entity Q256602
relation P769
type Q8386
SELECT DISTINCT ?w WHERE { ?w property:P769 resource:Q256602 . ?w rdf:type ontology:Q8386 }
Ciprofloxacin
action filter_type
action find_reverse
entity Ciprofloxacin
relation significant drug interaction
type drug
SELECT DISTINCT ?w WHERE { ?w property:significant_drug_interaction resource:Ciprofloxacin . ?w rdf:type ontology:drug }
[]
drug
Q417689 Q423538
SYSTEM
ramelteon, tizanidine
Q417689 Q423538
action filter_type
action find_reverse
entity Q256602
relation P769
type Q8386
Significantly that one interact with [ANSWERS]
SELECT DISTINCT ?w WHERE { ?w property:P769 resource:Q256602 . ?w rdf:type ontology:Q8386 }
ramelteon tizanidine
Significantly that one interact with ramelteon and tizanidine
ramelteon tizanidine
action filter_type
action find_reverse
entity Ciprofloxacin
relation significant drug interaction
type drug
SELECT DISTINCT ?w WHERE { ?w property:significant_drug_interaction resource:Ciprofloxacin . ?w rdf:type ontology:drug }
[]
Clarification
Simple Question|Single Entity|Indirect
Q417689
P129
Q181394
USER
Which nutrients interacts with that drug ?
(c(Q181394),P129,Q417689)
action filter_type
action find
entity Q417689
relation P129
type Q181394
[{'concept': 'Q181394'}, 'P129', 'Q417689']
SELECT DISTINCT ?z WHERE { resource:Q417689 property:P129 ?z . ?z rdf:type ontology:Q181394 }
ramelteon
action filter_type
action find
entity ramelteon
relation physically interacts with
type nutrient
[{'concept': 'nutrient'}, 'physically interacts with', 'ramelteon']
SELECT DISTINCT ?z WHERE { resource:ramelteon property:physically_interacts_with ?z . ?z rdf:type ontology:nutrient }
[]
nutrient
Clarification for simple ques.
Q423538
SYSTEM
Did you mean tizanidine ?
Q417689 Q423538
(c(Q181394),P129,Q417689) (c(Q181394),P129,Q423538)
[ANSWER]
[{'concept': 'Q181394'}, 'P129', 'Q417689'] [{'concept': 'Q181394'}, 'P129', 'Q423538']
SELECT DISTINCT ?z WHERE { resource:Q417689 property:P129 ?z . ?z rdf:type ontology:Q181394 }
ramelteon tizanidine
Did you mean tizanidine ?
tizanidine
[{'concept': 'nutrient'}, 'physically interacts with', 'ramelteon'] [{'concept': 'nutrient'}, 'physically interacts with', 'tizanidine']
SELECT DISTINCT ?z WHERE { resource:ramelteon property:physically_interacts_with ?z . ?z rdf:type ontology:nutrient }
[]
Simple Question (Coreferenced)
USER
No, I meant ramelteon. Could you tell me the answer for that?
(c(Q181394),P129,Q417689)
Q417689
[{'concept': 'Q181394'}, 'P129', 'Q417689']
[{'concept': 'nutrient'}, 'physically interacts with', 'ramelteon']
[]
Q21122997 Q21122995
SYSTEM
Melatonin receptor type 1B, Melatonin receptor type 1A
Q21122997 Q21122995
(c(Q181394),P129,Q417689)
action filter_type
action find
entity Q417689
relation P129
type Q181394
[ANSWERS] interact with that drug
[{'concept': 'Q181394'}, 'P129', 'Q417689']
SELECT DISTINCT ?z WHERE { resource:Q417689 property:P129 ?z . ?z rdf:type ontology:Q181394 }
Melatonin receptor type 1B Melatonin receptor type 1A
Melatonin receptor type 1B and Melatonin receptor type 1A interact with that drug
Melatonin receptor type 1B Melatonin receptor type 1A
action filter_type
action find
entity ramelteon
relation physically interacts with
type nutrient
[{'concept': 'nutrient'}, 'physically interacts with', 'ramelteon']
SELECT DISTINCT ?z WHERE { resource:ramelteon property:physically_interacts_with ?z . ?z rdf:type ontology:nutrient }
[]