Simple Question (Direct)
Simple Question
Q26248570
P702
Q863908
USER
Which gene encodes TBC1 domain family member 21 ?
(Q26248570,P702,c(Q863908))
action filter_type
action find
entity Q26248570
relation P702
type Q863908
['Q26248570', 'P702', {'concept': 'Q863908'}]
SELECT DISTINCT ?j WHERE { resource:Q26248570 property:P702 ?j . ?j rdf:type ontology:Q863908 }
TBC1 domain family member 21
action filter_type
action find
entity TBC1 domain family member 21
relation encoded by
type nucleic acid sequence
['TBC1 domain family member 21', 'encoded by', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?j WHERE { resource:TBC1_domain_family_member_21 property:encoded_by ?j . ?j rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18266634
SYSTEM
Tbc1d21
Q18266634
(Q26248570,P702,c(Q863908))
action filter_type
action find
entity Q26248570
relation P702
type Q863908
[ANSWER] encodes TBC1 domain family member 21
['Q26248570', 'P702', {'concept': 'Q863908'}]
SELECT DISTINCT ?j WHERE { resource:Q26248570 property:P702 ?j . ?j rdf:type ontology:Q863908 }
Tbc1d21
Tbc1d21 encodes TBC1 domain family member 21
Tbc1d21
action filter_type
action find
entity TBC1 domain family member 21
relation encoded by
type nucleic acid sequence
['TBC1 domain family member 21', 'encoded by', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?j WHERE { resource:TBC1_domain_family_member_21 property:encoded_by ?j . ?j rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18266634
P684
Q863908
USER
What is an otrhologus gene for that one ?
(Q18266634,P684,c(Q863908))
action filter_type
action find
entity Q18266634
relation P684
type Q863908
['Q18266634', 'P684', {'concept': 'Q863908'}]
SELECT DISTINCT ?m WHERE { resource:Q18266634 property:P684 ?m . ?m rdf:type ontology:Q863908 }
Tbc1d21
action filter_type
action find
entity Tbc1d21
relation ortholog
type nucleic acid sequence
['Tbc1d21', 'ortholog', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?m WHERE { resource:Tbc1d21 property:ortholog ?m . ?m rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18052499
SYSTEM
TBC1D21
Q18052499
(Q18266634,P684,c(Q863908))
action filter_type
action find
entity Q18266634
relation P684
type Q863908
An otrhologus gene for that one is the [ANSWER]
['Q18266634', 'P684', {'concept': 'Q863908'}]
SELECT DISTINCT ?m WHERE { resource:Q18266634 property:P684 ?m . ?m rdf:type ontology:Q863908 }
TBC1D21
An otrhologus gene for that one is the TBC1D21
TBC1D21
action filter_type
action find
entity Tbc1d21
relation ortholog
type nucleic acid sequence
['Tbc1d21', 'ortholog', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?m WHERE { resource:Tbc1d21 property:ortholog ?m . ?m rdf:type ontology:nucleic_acid_sequence }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q18052499 Q23569093 Q24221754
P688
Q181394
USER
Does that nucleic acid sequence encodes heat shock protein 90    gvip249 and ABC transporter substrate-binding protein    blr4842 ?
(Q18052499,P688,Q23569093) (Q18052499,P688,Q24221754)
action is_in
entity Q18052499
action intersection
action find_reverse
entity Q23569093
relation P688
action find_reverse
entity Q24221754
relation P688
['Q18052499', 'P688', 'Q23569093'] ['Q18052499', 'P688', 'Q24221754']
ASK WHERE { resource:Q18052499 property:P688 resource:Q23569093 . resource:Q18052499 property:P688 resource:Q24221754 }
TBC1D21 heat shock protein 90    gvip249 ABC transporter substrate-binding protein    blr4842
action is_in
entity TBC1D21
action intersection
action find_reverse
entity heat shock protein 90    gvip249
relation encodes
action find_reverse
entity ABC transporter substrate-binding protein    blr4842
relation encodes
['TBC1D21', 'encodes', 'heat shock protein 90    gvip249'] ['TBC1D21', 'encodes', 'ABC transporter substrate-binding protein    blr4842']
ASK WHERE { resource:TBC1D21 property:encodes resource:heat_shock_protein_90____gvip249 . resource:TBC1D21 property:encodes resource:ABC_transporter_substrate-binding_protein____blr4842 }
[]
nutrient
SYSTEM
NO
(Q18052499,P688,Q23569093) (Q18052499,P688,Q24221754)
action is_in
entity Q18052499
action intersection
action find_reverse
entity Q23569093
relation P688
action find_reverse
entity Q24221754
relation P688
[ANSWER]
['Q18052499', 'P688', 'Q23569093'] ['Q18052499', 'P688', 'Q24221754']
ASK WHERE { resource:Q18052499 property:P688 resource:Q23569093 . resource:Q18052499 property:P688 resource:Q24221754 }
No
action is_in
entity TBC1D21
action intersection
action find_reverse
entity heat shock protein 90    gvip249
relation encodes
action find_reverse
entity ABC transporter substrate-binding protein    blr4842
relation encodes
['TBC1D21', 'encodes', 'heat shock protein 90    gvip249'] ['TBC1D21', 'encodes', 'ABC transporter substrate-binding protein    blr4842']
ASK WHERE { resource:TBC1D21 property:encodes resource:heat_shock_protein_90____gvip249 . resource:TBC1D21 property:encodes resource:ABC_transporter_substrate-binding_protein____blr4842 }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q23265995 Q18266634
P702
Q181394
USER
Which nutrients are encoded by Tbc1d21 or hypothetical protein    gll1851 ?
OR((c(Q181394),P702,Q18266634), (c(Q181394),P702,Q23265995))
action filter_type
action union
action find_reverse
entity Q18266634
relation P702
action find_reverse
entity Q23265995
relation P702
type Q181394
{'OR': [[{'concept': 'Q181394'}, 'P702', 'Q18266634'], [{'concept': 'Q181394'}, 'P702', 'Q23265995']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:Q23265995 ) ( resource:Q18266634 ) } . ?t property:P702 ?h } . ?t rdf:type ontology:Q181394 }
hypothetical protein    gll1851 Tbc1d21
action filter_type
action union
action find_reverse
entity Tbc1d21
relation encoded by
action find_reverse
entity hypothetical protein    gll1851
relation encoded by
type nutrient
{'OR': [[{'concept': 'nutrient'}, 'encoded by', 'Tbc1d21'], [{'concept': 'nutrient'}, 'encoded by', 'hypothetical protein    gll1851']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:hypothetical_protein____gll1851 ) ( resource:Tbc1d21 ) } . ?t property:encoded_by ?h } . ?t rdf:type ontology:nutrient }
[]
nutrient
Q23569647 Q26248570
SYSTEM
hypothetical protein    gll1851, TBC1 domain family member 21
Q23569647 Q26248570
OR((c(Q181394),P702,Q18266634), (c(Q181394),P702,Q23265995))
action filter_type
action union
action find_reverse
entity Q18266634
relation P702
action find_reverse
entity Q23265995
relation P702
type Q181394
[ANSWERS]
{'OR': [[{'concept': 'Q181394'}, 'P702', 'Q18266634'], [{'concept': 'Q181394'}, 'P702', 'Q23265995']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:Q23265995 ) ( resource:Q18266634 ) } . ?t property:P702 ?h } . ?t rdf:type ontology:Q181394 }
hypothetical protein    gll1851 TBC1 domain family member 21
Hypothetical protein gll1851 and TBC1 domain family member 21 are encoded by Tbc1d21 or hypothetical protein gll1851
hypothetical protein    gll1851 TBC1 domain family member 21
action filter_type
action union
action find_reverse
entity Tbc1d21
relation encoded by
action find_reverse
entity hypothetical protein    gll1851
relation encoded by
type nutrient
{'OR': [[{'concept': 'nutrient'}, 'encoded by', 'Tbc1d21'], [{'concept': 'nutrient'}, 'encoded by', 'hypothetical protein    gll1851']]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?h ) { ( resource:hypothetical_protein____gll1851 ) ( resource:Tbc1d21 ) } . ?t property:encoded_by ?h } . ?t rdf:type ontology:nutrient }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P129
Q8386 Q79529 Q181394
USER
Which nutrients can interact with exactly 34 drugs or chemical substances ?
(c(Q181394),P129,c(Q8386)|c(Q79529))
action equal
action union
action find_tuple_counts
relation P129
type Q181394
type Q8386
action find_tuple_counts
relation P129
type Q181394
type Q79529
value 34
[{'concept': 'Q181394'}, 'P129', [{'concept': 'Q8386'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?f WHERE { { ?f property:P129 ?h . ?f rdf:type ontology:Q181394 . ?h rdf:type ontology:Q8386 } UNION { ?f property:P129 ?h . ?h rdf:type ontology:Q79529 . ?f rdf:type ontology:Q181394 } } GROUP BY ?f } . FILTER ( ?u = 34 ) }
action equal
action union
action find_tuple_counts
relation physically interacts with
type nutrient
type drug
action find_tuple_counts
relation physically interacts with
type nutrient
type chemical substance
value 34
[{'concept': 'nutrient'}, 'physically interacts with', [{'concept': 'drug'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?f WHERE { { ?f property:physically_interacts_with ?h . ?f rdf:type ontology:nutrient . ?h rdf:type ontology:drug } UNION { ?f property:physically_interacts_with ?h . ?h rdf:type ontology:chemical_substance . ?f rdf:type ontology:nutrient } } GROUP BY ?f } . FILTER ( ?u = 34 ) }
[]
drug chemical substance nutrient
Q5123372
SYSTEM
Mu-type opioid receptor
Q5123372
(c(Q181394),P129,c(Q8386)|c(Q79529))
action equal
action union
action find_tuple_counts
relation P129
type Q181394
type Q8386
action find_tuple_counts
relation P129
type Q181394
type Q79529
value 34
[ANSWER] can interact with exactly 34 drugs or chemical substances
[{'concept': 'Q181394'}, 'P129', [{'concept': 'Q8386'}, {'concept': 'Q79529'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?f WHERE { { ?f property:P129 ?h . ?f rdf:type ontology:Q181394 . ?h rdf:type ontology:Q8386 } UNION { ?f property:P129 ?h . ?h rdf:type ontology:Q79529 . ?f rdf:type ontology:Q181394 } } GROUP BY ?f } . FILTER ( ?u = 34 ) }
Mu-type opioid receptor
Mu-type opioid receptor can interact with exactly 34 drugs or chemical substances
Mu-type opioid receptor
action equal
action union
action find_tuple_counts
relation physically interacts with
type nutrient
type drug
action find_tuple_counts
relation physically interacts with
type nutrient
type chemical substance
value 34
[{'concept': 'nutrient'}, 'physically interacts with', [{'concept': 'drug'}, {'concept': 'chemical substance'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) ?f WHERE { { ?f property:physically_interacts_with ?h . ?f rdf:type ontology:nutrient . ?h rdf:type ontology:drug } UNION { ?f property:physically_interacts_with ?h . ?h rdf:type ontology:chemical_substance . ?f rdf:type ontology:nutrient } } GROUP BY ?f } . FILTER ( ?u = 34 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Indirect
P129
Q181394 Q181394
USER
How many nutrients do greater number of nutrients collaborate with than that nutrient ?
(c(Q181394),P129,c(Q181394))
action count
action greater
action find_reverse_tuple_counts
relation P129
type Q181394
type Q181394
action count
action filter_type
action find
entity Q5123372
relation P129
type Q181394
[{'concept': 'Q181394'}, 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:P129 ?v . ?v rdf:type ontology:Q181394 . ?g rdf:type ontology:Q181394 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Q5123372 property:P129 ?u . ?u rdf:type ontology:Q181394 } } . FILTER ( ?s > ?y ) }
action count
action greater
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type nutrient
action count
action filter_type
action find
entity Mu-type opioid receptor
relation physically interacts with
type nutrient
[{'concept': 'nutrient'}, 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:physically_interacts_with ?v . ?v rdf:type ontology:nutrient . ?g rdf:type ontology:nutrient } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Mu-type_opioid_receptor property:physically_interacts_with ?u . ?u rdf:type ontology:nutrient } } . FILTER ( ?s > ?y ) }
[]
nutrient nutrient
SYSTEM
4
Q423510 Q3931282 Q315860 Q1979313
(c(Q181394),P129,c(Q181394))
action count
action greater
action find_reverse_tuple_counts
relation P129
type Q181394
type Q181394
action count
action filter_type
action find
entity Q5123372
relation P129
type Q181394
[ANSWER]
[{'concept': 'Q181394'}, 'P129', {'concept': 'Q181394'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:P129 ?v . ?v rdf:type ontology:Q181394 . ?g rdf:type ontology:Q181394 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Q5123372 property:P129 ?u . ?u rdf:type ontology:Q181394 } } . FILTER ( ?s > ?y ) }
Amyloid beta A4 protein Calcitonin receptor Calcitonin Very low-density lipoprotein receptor
4
action count
action greater
action find_reverse_tuple_counts
relation physically interacts with
type nutrient
type nutrient
action count
action filter_type
action find
entity Mu-type opioid receptor
relation physically interacts with
type nutrient
[{'concept': 'nutrient'}, 'physically interacts with', {'concept': 'nutrient'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?w ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?s ) WHERE { ?g property:physically_interacts_with ?v . ?v rdf:type ontology:nutrient . ?g rdf:type ontology:nutrient } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?y ) WHERE { resource:Mu-type_opioid_receptor property:physically_interacts_with ?u . ?u rdf:type ontology:nutrient } } . FILTER ( ?s > ?y ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q23569161 Q26248570
P688
Q863908
USER
Which nucleic acid sequences encode TBC1 domain family member 21 or hypothetical protein    gll3250 ?
OR((c(Q863908),P688,Q26248570), (c(Q863908),P688,Q23569161))
action filter_type
action union
action find_reverse
entity Q26248570
relation P688
action find_reverse
entity Q23569161
relation P688
type Q863908
{'OR': [[{'concept': 'Q863908'}, 'P688', 'Q26248570'], [{'concept': 'Q863908'}, 'P688', 'Q23569161']]}
SELECT DISTINCT ?e WHERE { { { ?e property:P688 resource:Q26248570 } UNION { ?e property:P688 resource:Q23569161 } } . ?e rdf:type ontology:Q863908 }
hypothetical protein    gll3250 TBC1 domain family member 21
action filter_type
action union
action find_reverse
entity TBC1 domain family member 21
relation encodes
action find_reverse
entity hypothetical protein    gll3250
relation encodes
type nucleic acid sequence
{'OR': [[{'concept': 'nucleic acid sequence'}, 'encodes', 'TBC1 domain family member 21'], [{'concept': 'nucleic acid sequence'}, 'encodes', 'hypothetical protein    gll3250']]}
SELECT DISTINCT ?e WHERE { { { ?e property:encodes resource:TBC1_domain_family_member_21 } UNION { ?e property:encodes resource:hypothetical_protein____gll3250 } } . ?e rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Q18266634 Q23265036
SYSTEM
Tbc1d21, hypothetical protein    gll3250
Q18266634 Q23265036
OR((c(Q863908),P688,Q26248570), (c(Q863908),P688,Q23569161))
action filter_type
action union
action find_reverse
entity Q26248570
relation P688
action find_reverse
entity Q23569161
relation P688
type Q863908
[ANSWERS]
{'OR': [[{'concept': 'Q863908'}, 'P688', 'Q26248570'], [{'concept': 'Q863908'}, 'P688', 'Q23569161']]}
SELECT DISTINCT ?e WHERE { { { ?e property:P688 resource:Q26248570 } UNION { ?e property:P688 resource:Q23569161 } } . ?e rdf:type ontology:Q863908 }
Tbc1d21 hypothetical protein    gll3250
Tbc1d21 and hypothetical protein gll3250 encode TBC1 domain family member 21 or hypothetical protein gll3250
Tbc1d21 hypothetical protein    gll3250
action filter_type
action union
action find_reverse
entity TBC1 domain family member 21
relation encodes
action find_reverse
entity hypothetical protein    gll3250
relation encodes
type nucleic acid sequence
{'OR': [[{'concept': 'nucleic acid sequence'}, 'encodes', 'TBC1 domain family member 21'], [{'concept': 'nucleic acid sequence'}, 'encodes', 'hypothetical protein    gll3250']]}
SELECT DISTINCT ?e WHERE { { { ?e property:encodes resource:TBC1_domain_family_member_21 } UNION { ?e property:encodes resource:hypothetical_protein____gll3250 } } . ?e rdf:type ontology:nucleic_acid_sequence }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P702
Q181394
USER
How many nutrients are encoded by that nucleic acid sequence ?
(c(Q181394),P702,Q18266634)
[{'concept': 'Q181394'}, 'P702', 'Q18266634']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P702 resource:Q18266634 . ?z rdf:type ontology:Q181394 }
[{'concept': 'nutrient'}, 'encoded by', 'Tbc1d21']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:encoded_by resource:Tbc1d21 . ?z rdf:type ontology:nutrient }
[]
nutrient
Quantitative|Count|Single entity type|Clarification
Q23265036
SYSTEM
Did you mean hypothetical protein    gll3250 ?
(c(Q181394),P702,Q18266634) (c(Q181394),P702,Q23265036)
[ANSWER]
[{'concept': 'Q181394'}, 'P702', 'Q18266634'] [{'concept': 'Q181394'}, 'P702', 'Q23265036']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P702 resource:Q18266634 . ?z rdf:type ontology:Q181394 }
Did you mean hypothetical protein    gll3250 ?
hypothetical protein    gll3250
[{'concept': 'nutrient'}, 'encoded by', 'Tbc1d21'] [{'concept': 'nutrient'}, 'encoded by', 'hypothetical protein    gll3250']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:encoded_by resource:Tbc1d21 . ?z rdf:type ontology:nutrient }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Tbc1d21. Could you tell me the answer for that?
(c(Q181394),P702,Q18266634)
Q18266634
[{'concept': 'Q181394'}, 'P702', 'Q18266634']
[{'concept': 'nutrient'}, 'encoded by', 'Tbc1d21']
[]
SYSTEM
1
Q26248570
(c(Q181394),P702,Q18266634)
[ANSWER]
[{'concept': 'Q181394'}, 'P702', 'Q18266634']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:P702 resource:Q18266634 . ?z rdf:type ontology:Q181394 }
TBC1 domain family member 21
1
[{'concept': 'nutrient'}, 'encoded by', 'Tbc1d21']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:encoded_by resource:Tbc1d21 . ?z rdf:type ontology:nutrient }
[]