Simple Question (Direct)
Simple Question
Q16213778
P106
Q151885
USER
What is the profession of Aaron Small ?
(Q16213778,P106,c(Q151885))
action filter_type
action find
entity Q16213778
relation P106
type Q151885
['Q16213778', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q16213778 property:P106 ?m . ?m rdf:type ontology:Q151885 }
Aaron Small
action filter_type
action find
entity Aaron Small
relation occupation
type concept
['Aaron Small', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Aaron_Small property:occupation ?m . ?m rdf:type ontology:concept }
[]
concept
Q10871364
SYSTEM
baseball player
Q10871364
(Q16213778,P106,c(Q151885))
action filter_type
action find
entity Q16213778
relation P106
type Q151885
The profession of Aaron Small is a [ANSWER]
['Q16213778', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?m WHERE { resource:Q16213778 property:P106 ?m . ?m rdf:type ontology:Q151885 }
baseball player
The profession of Aaron Small is a baseball player
baseball player
action filter_type
action find
entity Aaron Small
relation occupation
type concept
['Aaron Small', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?m WHERE { resource:Aaron_Small property:occupation ?m . ?m rdf:type ontology:concept }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16213778
P21
Q290
USER
Which sex does that person have ?
(Q10871364,P21,c(Q290))
action filter_type
action find
entity Q16213778
relation P21
type Q290
['Q10871364', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q16213778 property:P21 ?x . ?x rdf:type ontology:Q290 }
Aaron Small
action filter_type
action find
entity Aaron Small
relation gender
type sex
['baseball player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Aaron_Small property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q10871364,P21,c(Q290))
action filter_type
action find
entity Q16213778
relation P21
type Q290
That person has a [ANSWER]
['Q10871364', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q16213778 property:P21 ?x . ?x rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Aaron Small
relation gender
type sex
['baseball player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Aaron_Small property:gender ?x . ?x rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P636
Q151885 Q79529 Q3249551
USER
Which concepts are the routes of administration of exactly 1 chemical substances and processes ?
(c(Q79529)|c(Q3249551),P636,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
value 1
[[{'concept': 'Q79529'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } } GROUP BY ?d } . FILTER ( ?n = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action find_reverse_tuple_counts
relation route of administration
type concept
type process
value 1
[[{'concept': 'chemical substance'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:chemical_substance ) ( ontology:process ) } } GROUP BY ?d } . FILTER ( ?n = 1 ) }
[]
concept chemical substance process
Q6058566 Q16920397 Q784720
SYSTEM
intravaginal administration, conjunctival, sublingual administration
Q6058566 Q16920397 Q784720
(c(Q79529)|c(Q3249551),P636,c(Q151885))
action equal
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q3249551
value 1
[ANSWERS] are the routes of administration of exactly 1 chemical substances and processes
[[{'concept': 'Q79529'}, {'concept': 'Q3249551'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q79529 ) ( ontology:Q3249551 ) } } GROUP BY ?d } . FILTER ( ?n = 1 ) }
intravaginal administration conjunctival sublingual administration
Intravaginal administration, conjunctival and sublingual administration are the routes of administration of exactly 1 chemical substances and processes
intravaginal administration conjunctival sublingual administration
action equal
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action find_reverse_tuple_counts
relation route of administration
type concept
type process
value 1
[[{'concept': 'chemical substance'}, {'concept': 'process'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?x ) AS ?n ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:chemical_substance ) ( ontology:process ) } } GROUP BY ?d } . FILTER ( ?n = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q10871364 Q279532
P641
Q349
USER
How many sports did baseball player or penalty kick participate in ?
(Q10871364,P641,c(Q349)) (Q279532,P641,c(Q349))
action count
action union
action filter_type
action find
entity Q10871364
relation P641
type Q349
action filter_type
action find
entity Q279532
relation P641
type Q349
['Q10871364', 'P641', {'concept': 'Q349'}] ['Q279532', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:P641 ?b . VALUES ( ?l ) { ( resource:Q10871364 ) ( resource:Q279532 ) } }
baseball player penalty kick
action count
action union
action filter_type
action find
entity baseball player
relation sport
type sport
action filter_type
action find
entity penalty kick
relation sport
type sport
['baseball player', 'sport', {'concept': 'sport'}] ['penalty kick', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:sport ?b . VALUES ( ?l ) { ( resource:baseball_player ) ( resource:penalty_kick ) } }
[]
sport
SYSTEM
2
Q5369 Q2736
(Q10871364,P641,c(Q349)) (Q279532,P641,c(Q349))
action count
action union
action filter_type
action find
entity Q10871364
relation P641
type Q349
action filter_type
action find
entity Q279532
relation P641
type Q349
[ANSWER]
['Q10871364', 'P641', {'concept': 'Q349'}] ['Q279532', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:P641 ?b . VALUES ( ?l ) { ( resource:Q10871364 ) ( resource:Q279532 ) } }
baseball association football
2
action count
action union
action filter_type
action find
entity baseball player
relation sport
type sport
action filter_type
action find
entity penalty kick
relation sport
type sport
['baseball player', 'sport', {'concept': 'sport'}] ['penalty kick', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { ?l property:sport ?b . VALUES ( ?l ) { ( resource:baseball_player ) ( resource:penalty_kick ) } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P138
Q2221906 Q271669 Q151885
USER
Which concepts have around 1 geographic locations or landforms as their namesake ?
(c(Q151885),P138,c(Q2221906)|c(Q271669))
action approx
action union
action find_tuple_counts
relation P138
type Q151885
type Q2221906
action find_tuple_counts
relation P138
type Q151885
type Q271669
value 1
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2221906 ) ( ontology:Q271669 ) } } GROUP BY ?m } }
action approx
action union
action find_tuple_counts
relation named after
type concept
type geographic location
action find_tuple_counts
relation named after
type concept
type landform
value 1
[{'concept': 'concept'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'landform'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:geographic_location ) ( ontology:landform ) } } GROUP BY ?m } }
[]
geographic location landform concept
Q611017 Q127455 Q169320
SYSTEM
Lusatian culture, Ordos culture, Trialeti culture
Q182324 Q1127723 Q2624476 Q127455 Q169320 Q611017 Q260801
(c(Q151885),P138,c(Q2221906)|c(Q271669))
action approx
action union
action find_tuple_counts
relation P138
type Q151885
type Q2221906
action find_tuple_counts
relation P138
type Q151885
type Q271669
value 1
[ANSWERS] have around 1 geographic locations or landforms as their namesake
[{'concept': 'Q151885'}, 'P138', [{'concept': 'Q2221906'}, {'concept': 'Q271669'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:Q2221906 ) ( ontology:Q271669 ) } } GROUP BY ?m } }
Antikythera mechanism Paracas culture Marajoara culture Ordos culture Trialeti culture Lusatian culture Havelland culture
Lusatian culture, Ordos culture and Trialeti culture have around 1 geographic locations or landforms as their namesake
Lusatian culture Ordos culture Trialeti culture
action approx
action union
action find_tuple_counts
relation named after
type concept
type geographic location
action find_tuple_counts
relation named after
type concept
type landform
value 1
[{'concept': 'concept'}, 'named after', [{'concept': 'geographic location'}, {'concept': 'landform'}]]
SELECT DISTINCT ?m WHERE { FILTER ( ?u = 1 ) . { SELECT DISTINCT ( COUNT ( ?b ) AS ?u ) ?m WHERE { ?b rdf:type ?k . VALUES ( ?k ) { ( ontology:geographic_location ) ( ontology:landform ) } } GROUP BY ?m } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q285166 Q784720
P636
Q8386
USER
Which drugs are administered through sublingual administration or oral administration route ?
OR((c(Q8386),P636,Q784720), (c(Q8386),P636,Q285166))
action filter_type
action union
action find_reverse
entity Q784720
relation P636
action find_reverse
entity Q285166
relation P636
type Q8386
{'OR': [[{'concept': 'Q8386'}, 'P636', 'Q784720'], [{'concept': 'Q8386'}, 'P636', 'Q285166']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q8386 . { { ?o property:P636 resource:Q784720 } UNION { ?o property:P636 resource:Q285166 } } }
oral administration sublingual administration
action filter_type
action union
action find_reverse
entity sublingual administration
relation route of administration
action find_reverse
entity oral administration
relation route of administration
type drug
{'OR': [[{'concept': 'drug'}, 'route of administration', 'sublingual administration'], [{'concept': 'drug'}, 'route of administration', 'oral administration']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:drug . { { ?o property:route_of_administration resource:sublingual_administration } UNION { ?o property:route_of_administration resource:oral_administration } } }
[]
drug
Q4112207 Q410291 Q18216 Q407721 Q424037 Q417997 Q415242 Q418060 Q412621 Q471763
SYSTEM
Some of them are bismuth subcitrate, verapamil, acetylsalicylic acid, buprenorphine, roxithromycin, ezetimibe, altretamine, desloratadine, Methyldopa, Aminophylline
Q412690 Q418060 Q409468 Q7263592 Q4112207 Q18216 Q471763 Q424037 Q422438 Q1958189 Q422188 Q418594 Q407721 Q4567614 Q424952 Q421239 Q422232 Q6827783 Q2623398 Q417997 Q411648 Q425729 Q425296 Q410265 Q413370 Q418730 Q287029 Q304570 Q4462924 Q418817 Q2496906 Q2268608 Q210402 Q412621 Q183554 Q410291 Q213511 Q420207 Q422112 Q407431 Q415242 Q198504 Q57055 Q3993743 Q418656 Q418571 Q4161323 Q410546 Q7679533 Q3277473 Q419472 Q411417 Q255968
OR((c(Q8386),P636,Q784720), (c(Q8386),P636,Q285166))
action filter_type
action union
action find_reverse
entity Q784720
relation P636
action find_reverse
entity Q285166
relation P636
type Q8386
[ANSWERS] are administered through sublingual administration or oral administration route
{'OR': [[{'concept': 'Q8386'}, 'P636', 'Q784720'], [{'concept': 'Q8386'}, 'P636', 'Q285166']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q8386 . { { ?o property:P636 resource:Q784720 } UNION { ?o property:P636 resource:Q285166 } } }
galantamine desloratadine metoprolol Pyridoxine/doxylamine bismuth subcitrate acetylsalicylic acid Aminophylline roxithromycin chloroquine Bromopride spironolactone valacyclovir buprenorphine mycophenolate mofetil nadolol D-penicillamine methotrexate mibefradil Nicergoline ezetimibe tacrolimus Ivabradine prazosin sodium picosulfate Tegafur enclomiphene Isotretinoin Nitroxoline Triazavirin etoposide Salicylamide Dextropropoxyphene diazepam Methyldopa Fosfomycin verapamil Erythromycin capecitabine methylphenidate Warfarin altretamine zidovudine paracetamol toremifene procarbazine ethacrynic acid Ergoloid mesylate neostigmine talinolol distigmine bromide pyridostigmine cephalexin 6-aminocaproic acid
Bismuth subcitrate, verapamil, acetylsalicylic acid, buprenorphine, roxithromycin, ezetimibe, altretamine, desloratadine, Methyldopa and Aminophylline are administered through sublingual administration or oral administration route
bismuth subcitrate verapamil acetylsalicylic acid buprenorphine roxithromycin ezetimibe altretamine desloratadine Methyldopa Aminophylline
action filter_type
action union
action find_reverse
entity sublingual administration
relation route of administration
action find_reverse
entity oral administration
relation route of administration
type drug
{'OR': [[{'concept': 'drug'}, 'route of administration', 'sublingual administration'], [{'concept': 'drug'}, 'route of administration', 'oral administration']]}
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:drug . { { ?o property:route_of_administration resource:sublingual_administration } UNION { ?o property:route_of_administration resource:oral_administration } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q4112207 Q410291 Q18216 Q407721 Q424037 Q417997 Q415242 Q418060 Q412621 Q471763
P636
Q151885
USER
Which concepts are the routes of administration of those drugs ?
(Q4112207,P636,c(Q151885)) (Q410291,P636,c(Q151885)) (Q18216,P636,c(Q151885)) (Q407721,P636,c(Q151885)) (Q424037,P636,c(Q151885)) (Q417997,P636,c(Q151885)) (Q415242,P636,c(Q151885)) (Q418060,P636,c(Q151885)) (Q412621,P636,c(Q151885)) (Q471763,P636,c(Q151885))
action filter_type
action find
entity prev_answer
relation P636
type Q151885
['Q4112207', 'P636', {'concept': 'Q151885'}] ['Q410291', 'P636', {'concept': 'Q151885'}] ['Q18216', 'P636', {'concept': 'Q151885'}] ['Q407721', 'P636', {'concept': 'Q151885'}] ['Q424037', 'P636', {'concept': 'Q151885'}] ['Q417997', 'P636', {'concept': 'Q151885'}] ['Q415242', 'P636', {'concept': 'Q151885'}] ['Q418060', 'P636', {'concept': 'Q151885'}] ['Q412621', 'P636', {'concept': 'Q151885'}] ['Q471763', 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { ?i property:P636 ?q . ?q rdf:type ontology:Q151885 . VALUES ( ?i ) { ( resource:Q412690 ) ( resource:Q418060 ) ( resource:Q409468 ) } }
bismuth subcitrate verapamil acetylsalicylic acid buprenorphine roxithromycin ezetimibe altretamine desloratadine Methyldopa Aminophylline
action filter_type
action find
entity prev_answer
relation route of administration
type concept
['bismuth subcitrate', 'route of administration', {'concept': 'concept'}] ['verapamil', 'route of administration', {'concept': 'concept'}] ['acetylsalicylic acid', 'route of administration', {'concept': 'concept'}] ['buprenorphine', 'route of administration', {'concept': 'concept'}] ['roxithromycin', 'route of administration', {'concept': 'concept'}] ['ezetimibe', 'route of administration', {'concept': 'concept'}] ['altretamine', 'route of administration', {'concept': 'concept'}] ['desloratadine', 'route of administration', {'concept': 'concept'}] ['Methyldopa', 'route of administration', {'concept': 'concept'}] ['Aminophylline', 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { ?i property:route_of_administration ?q . ?q rdf:type ontology:concept . VALUES ( ?i ) { ( resource:galantamine ) ( resource:desloratadine ) ( resource:metoprolol ) } }
[]
concept
Q285166 Q285166 Q640448
SYSTEM
oral administration for 1st, 2nd, intravenous infusion for 3rd
Q285166 Q285166 Q640448 Q285166 Q784720 Q640448 Q285166 Q285166 Q285166 Q285166 Q285166 Q285166 Q640448
(Q4112207,P636,c(Q151885)) (Q410291,P636,c(Q151885)) (Q18216,P636,c(Q151885)) (Q407721,P636,c(Q151885)) (Q424037,P636,c(Q151885)) (Q417997,P636,c(Q151885)) (Q415242,P636,c(Q151885)) (Q418060,P636,c(Q151885)) (Q412621,P636,c(Q151885)) (Q471763,P636,c(Q151885))
action filter_type
action find
entity prev_answer
relation P636
type Q151885
[ANSWERS]
['Q4112207', 'P636', {'concept': 'Q151885'}] ['Q410291', 'P636', {'concept': 'Q151885'}] ['Q18216', 'P636', {'concept': 'Q151885'}] ['Q407721', 'P636', {'concept': 'Q151885'}] ['Q424037', 'P636', {'concept': 'Q151885'}] ['Q417997', 'P636', {'concept': 'Q151885'}] ['Q415242', 'P636', {'concept': 'Q151885'}] ['Q418060', 'P636', {'concept': 'Q151885'}] ['Q412621', 'P636', {'concept': 'Q151885'}] ['Q471763', 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { ?i property:P636 ?q . ?q rdf:type ontology:Q151885 . VALUES ( ?i ) { ( resource:Q412690 ) ( resource:Q418060 ) ( resource:Q409468 ) } }
oral administration oral administration intravenous infusion oral administration sublingual administration intravenous infusion oral administration oral administration oral administration oral administration oral administration oral administration intravenous infusion
Oral administration, oral administration and intravenous infusion are the routes of administration of those drugs
oral administration oral administration intravenous infusion
action filter_type
action find
entity prev_answer
relation route of administration
type concept
['bismuth subcitrate', 'route of administration', {'concept': 'concept'}] ['verapamil', 'route of administration', {'concept': 'concept'}] ['acetylsalicylic acid', 'route of administration', {'concept': 'concept'}] ['buprenorphine', 'route of administration', {'concept': 'concept'}] ['roxithromycin', 'route of administration', {'concept': 'concept'}] ['ezetimibe', 'route of administration', {'concept': 'concept'}] ['altretamine', 'route of administration', {'concept': 'concept'}] ['desloratadine', 'route of administration', {'concept': 'concept'}] ['Methyldopa', 'route of administration', {'concept': 'concept'}] ['Aminophylline', 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { ?i property:route_of_administration ?q . ?q rdf:type ontology:concept . VALUES ( ?i ) { ( resource:galantamine ) ( resource:desloratadine ) ( resource:metoprolol ) } }
[]