Simple Question (Direct)
Simple Question
Q10326216
P1412
Q34770
USER
Which language can Mariana Briski read ?
(Q10326216,P1412,c(Q34770))
action filter_type
action find
entity Q10326216
relation P1412
type Q34770
['Q10326216', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q10326216 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Mariana Briski
action filter_type
action find
entity Mariana Briski
relation languages spoken, written or signed
type language
['Mariana Briski', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Mariana_Briski property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q10326216,P1412,c(Q34770))
action filter_type
action find
entity Q10326216
relation P1412
type Q34770
Mariana Briski can read in [ANSWER]
['Q10326216', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?w WHERE { resource:Q10326216 property:P1412 ?w . ?w rdf:type ontology:Q34770 }
Spanish
Mariana Briski can read in Spanish
Spanish
action filter_type
action find
entity Mariana Briski
relation languages spoken, written or signed
type language
['Mariana Briski', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?w WHERE { resource:Mariana_Briski property:languages_spoken,_written_or_signed ?w . ?w rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q10326216
P1196
Q1931388
USER
What situation did that person die in ?
(Q1321,P1196,c(Q1931388))
action filter_type
action find
entity Q10326216
relation P1196
type Q1931388
['Q1321', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?t WHERE { resource:Q10326216 property:P1196 ?t . ?t rdf:type ontology:Q1931388 }
Mariana Briski
action filter_type
action find
entity Mariana Briski
relation manner of death
type cause of death
['Spanish', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?t WHERE { resource:Mariana_Briski property:manner_of_death ?t . ?t rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q1321,P1196,c(Q1931388))
action filter_type
action find
entity Q10326216
relation P1196
type Q1931388
That person died in [ANSWER]
['Q1321', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?t WHERE { resource:Q10326216 property:P1196 ?t . ?t rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Mariana Briski
relation manner of death
type cause of death
['Spanish', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?t WHERE { resource:Mariana_Briski property:manner_of_death ?t . ?t rdf:type ontology:cause_of_death }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8785
P37
Q34770 Q13220204 Q1048835
USER
How many languages are the official languages of greater number of administrative country subdivisions or political territories than Armenian ?
(c(Q13220204)|c(Q1048835),P37,c(Q34770))
action count
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q8785
relation P37
type Q13220204
type Q1048835
[[{'concept': 'Q13220204'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } . ?f rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { { ?b rdf:type ontology:Q13220204 } UNION { ?b rdf:type ontology:Q1048835 } } . ?b property:P37 resource:Q8785 } } . FILTER ( ?v > ?z ) }
Armenian
action count
action greater
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Armenian
relation official language
type second-level administrative country subdivision
type political territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?f rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { { ?b rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?b rdf:type ontology:political_territorial_entity } } . ?b property:official_language resource:Armenian } } . FILTER ( ?v > ?z ) }
[]
language second-level administrative country subdivision political territorial entity
SYSTEM
3
Q1860 Q652 Q1321
(c(Q13220204)|c(Q1048835),P37,c(Q34770))
action count
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q8785
relation P37
type Q13220204
type Q1048835
[ANSWER]
[[{'concept': 'Q13220204'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } . ?f rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { { ?b rdf:type ontology:Q13220204 } UNION { ?b rdf:type ontology:Q1048835 } } . ?b property:P37 resource:Q8785 } } . FILTER ( ?v > ?z ) }
English Italian Spanish
3
action count
action greater
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Armenian
relation official language
type second-level administrative country subdivision
type political territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?f ) AS ?v ) WHERE { VALUES ( ?y ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } . ?f rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { { { ?b rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?b rdf:type ontology:political_territorial_entity } } . ?b property:official_language resource:Armenian } } . FILTER ( ?v > ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q35726
P37
Q34770 Q13220204 Q1048835
USER
And also tell me about Etruscan?
(c(Q13220204)|c(Q1048835),P37,c(Q34770))
action count
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q35726
relation P37
type Q13220204
type Q1048835
[[{'concept': 'Q13220204'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?s WHERE { { ?y property:P37 ?s . ?s rdf:type ontology:Q34770 . ?y rdf:type ontology:Q13220204 } UNION { ?y property:P37 ?s . ?s rdf:type ontology:Q34770 . ?y rdf:type ontology:Q1048835 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P37 resource:Q35726 . { { ?p rdf:type ontology:Q13220204 } UNION { ?p rdf:type ontology:Q1048835 } } } } . FILTER ( ?i > ?o ) }
Etruscan
action count
action greater
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Etruscan
relation official language
type second-level administrative country subdivision
type political territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?s WHERE { { ?y property:official_language ?s . ?s rdf:type ontology:language . ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?y property:official_language ?s . ?s rdf:type ontology:language . ?y rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:official_language resource:Etruscan . { { ?p rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?p rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?i > ?o ) }
[]
language second-level administrative country subdivision political territorial entity
SYSTEM
5
Q1860 Q652 Q1321 Q8785 Q25164
(c(Q13220204)|c(Q1048835),P37,c(Q34770))
action count
action greater
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q35726
relation P37
type Q13220204
type Q1048835
[ANSWER]
[[{'concept': 'Q13220204'}, {'concept': 'Q1048835'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?s WHERE { { ?y property:P37 ?s . ?s rdf:type ontology:Q34770 . ?y rdf:type ontology:Q13220204 } UNION { ?y property:P37 ?s . ?s rdf:type ontology:Q34770 . ?y rdf:type ontology:Q1048835 } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:P37 resource:Q35726 . { { ?p rdf:type ontology:Q13220204 } UNION { ?p rdf:type ontology:Q1048835 } } } } . FILTER ( ?i > ?o ) }
English Italian Spanish Armenian Nynorsk
5
action count
action greater
action union
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Etruscan
relation official language
type second-level administrative country subdivision
type political territorial entity
[[{'concept': 'second-level administrative country subdivision'}, {'concept': 'political territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) ?s WHERE { { ?y property:official_language ?s . ?s rdf:type ontology:language . ?y rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?y property:official_language ?s . ?s rdf:type ontology:language . ?y rdf:type ontology:political_territorial_entity } } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?o ) WHERE { ?p property:official_language resource:Etruscan . { { ?p rdf:type ontology:second-level_administrative_country_subdivision } UNION { ?p rdf:type ontology:political_territorial_entity } } } } . FILTER ( ?i > ?o ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q10326216
P509
Q2057971
USER
How did Mariana Briski die ?
(Q10326216,P509,c(Q2057971))
action filter_type
action find
entity Q10326216
relation P509
type Q2057971
['Q10326216', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q10326216 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
Mariana Briski
action filter_type
action find
entity Mariana Briski
relation cause of death
type health problem
['Mariana Briski', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Mariana_Briski property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
health problem
Q47912 Q128581
SYSTEM
lung cancer, breast cancer
Q47912 Q128581
(Q10326216,P509,c(Q2057971))
action filter_type
action find
entity Q10326216
relation P509
type Q2057971
Mariana Briski died in [ANSWERS]
['Q10326216', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { resource:Q10326216 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
lung cancer breast cancer
Mariana Briski died in lung cancer and breast cancer
lung cancer breast cancer
action filter_type
action find
entity Mariana Briski
relation cause of death
type health problem
['Mariana Briski', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { resource:Mariana_Briski property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
Clarification
Simple Question|Single Entity|Indirect
Q47912
P2293
Q863908
USER
Which nucleic acid sequences have genetic connection with that health problem ?
(Q47912,P2293,c(Q863908))
action filter_type
action find
entity Q47912
relation P2293
type Q863908
['Q47912', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ?u WHERE { resource:Q47912 property:P2293 ?u . ?u rdf:type ontology:Q863908 }
lung cancer
action filter_type
action find
entity lung cancer
relation genetic association
type nucleic acid sequence
['lung cancer', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?u WHERE { resource:lung_cancer property:genetic_association ?u . ?u rdf:type ontology:nucleic_acid_sequence }
[]
nucleic acid sequence
Clarification for simple ques.
Q128581
SYSTEM
Did you mean breast cancer ?
Q47912 Q128581
(Q47912,P2293,c(Q863908)) (Q128581,P2293,c(Q863908))
[ANSWER]
['Q47912', 'P2293', {'concept': 'Q863908'}] ['Q128581', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ?u WHERE { resource:Q47912 property:P2293 ?u . ?u rdf:type ontology:Q863908 }
lung cancer breast cancer
Did you mean breast cancer ?
breast cancer
['lung cancer', 'genetic association', {'concept': 'nucleic acid sequence'}] ['breast cancer', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?u WHERE { resource:lung_cancer property:genetic_association ?u . ?u rdf:type ontology:nucleic_acid_sequence }
[]
Simple Question (Coreferenced)
USER
No, I meant lung cancer. Could you tell me the answer for that?
(Q47912,P2293,c(Q863908))
Q47912
['Q47912', 'P2293', {'concept': 'Q863908'}]
['lung cancer', 'genetic association', {'concept': 'nucleic acid sequence'}]
[]
Q5573603 Q15315135 Q18046843
SYSTEM
GPC5, TERT, CLPTM1L
Q18033514 Q18046843 Q18043088 Q18034010 Q18027817 Q15313986 Q18034642 Q17927359 Q15315135 Q18031020 Q5573603 Q18051065 Q14912280
(Q47912,P2293,c(Q863908))
action filter_type
action find
entity Q47912
relation P2293
type Q863908
[ANSWERS] have genetic connection with that health problem
['Q47912', 'P2293', {'concept': 'Q863908'}]
SELECT DISTINCT ?u WHERE { resource:Q47912 property:P2293 ?u . ?u rdf:type ontology:Q863908 }
MTMR3 CLPTM1L LRFN2 TGM5 IL1RAP TP63 PHACTR2 BPTF TERT RAD52 GPC5 VTI1A CHEK2
GPC5, TERT and CLPTM1L have genetic connection with that health problem
GPC5 TERT CLPTM1L
action filter_type
action find
entity lung cancer
relation genetic association
type nucleic acid sequence
['lung cancer', 'genetic association', {'concept': 'nucleic acid sequence'}]
SELECT DISTINCT ?u WHERE { resource:lung_cancer property:genetic_association ?u . ?u rdf:type ontology:nucleic_acid_sequence }
[]
Clarification
Simple Question|Single Entity|Indirect
Q5573603
P2293
Q2057971
USER
Which health problems have genetic relation with that nucleic acid sequence ?
(Q5573603,P2293,c(Q2057971))
action filter_type
action find
entity Q5573603
relation P2293
type Q2057971
['Q5573603', 'P2293', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q5573603 property:P2293 ?g . ?g rdf:type ontology:Q2057971 }
GPC5
action filter_type
action find
entity GPC5
relation genetic association
type health problem
['GPC5', 'genetic association', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:GPC5 property:genetic_association ?g . ?g rdf:type ontology:health_problem }
[]
health problem
Clarification for simple ques.
Q18046843
SYSTEM
Did you mean CLPTM1L ?
Q5573603 Q15315135 Q18046843
(Q5573603,P2293,c(Q2057971)) (Q15315135,P2293,c(Q2057971)) (Q18046843,P2293,c(Q2057971))
[ANSWER]
['Q5573603', 'P2293', {'concept': 'Q2057971'}] ['Q15315135', 'P2293', {'concept': 'Q2057971'}] ['Q18046843', 'P2293', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q5573603 property:P2293 ?g . ?g rdf:type ontology:Q2057971 }
GPC5 TERT CLPTM1L
Did you mean CLPTM1L ?
CLPTM1L
['GPC5', 'genetic association', {'concept': 'health problem'}] ['TERT', 'genetic association', {'concept': 'health problem'}] ['CLPTM1L', 'genetic association', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:GPC5 property:genetic_association ?g . ?g rdf:type ontology:health_problem }
[]
Simple Question (Coreferenced)
USER
No, I meant GPC5. Could you tell me the answer for that?
(Q5573603,P2293,c(Q2057971))
Q5573603
['Q5573603', 'P2293', {'concept': 'Q2057971'}]
['GPC5', 'genetic association', {'concept': 'health problem'}]
[]
Q8277 Q18556697 Q12174
SYSTEM
multiple sclerosis, human immunodeficiency virus infectious disease, obesity
Q12174 Q1126831 Q47912 Q18556697 Q8277 Q504790
(Q5573603,P2293,c(Q2057971))
action filter_type
action find
entity Q5573603
relation P2293
type Q2057971
[ANSWERS] have genetic relation with that nucleic acid sequence
['Q5573603', 'P2293', {'concept': 'Q2057971'}]
SELECT DISTINCT ?g WHERE { resource:Q5573603 property:P2293 ?g . ?g rdf:type ontology:Q2057971 }
obesity tetralogy of Fallot lung cancer human immunodeficiency virus infectious disease multiple sclerosis nephrotic syndrome
Multiple sclerosis, human immunodeficiency virus infectious disease and obesity have genetic relation with that nucleic acid sequence
multiple sclerosis human immunodeficiency virus infectious disease obesity
action filter_type
action find
entity GPC5
relation genetic association
type health problem
['GPC5', 'genetic association', {'concept': 'health problem'}]
SELECT DISTINCT ?g WHERE { resource:GPC5 property:genetic_association ?g . ?g rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q23251500
P2293
Q863908
USER
Are arylsulfatase    STM0038 genetically linked with those health problems ?
(Q23251500,P2293,Q8277) (Q23251500,P2293,Q18556697) (Q23251500,P2293,Q12174)
action is_in
entity prev_answer
action find
entity Q23251500
relation P2293
['Q23251500', 'P2293', 'Q8277'] ['Q23251500', 'P2293', 'Q18556697'] ['Q23251500', 'P2293', 'Q12174']
ASK WHERE { VALUES ( ?j ) { ( resource:Q12174 ) ( resource:Q1126831 ) ( resource:Q47912 ) } . resource:Q23251500 property:P2293 ?j }
arylsulfatase    STM0038
action is_in
entity prev_answer
action find
entity arylsulfatase    STM0038
relation genetic association
['arylsulfatase    STM0038', 'genetic association', 'multiple sclerosis'] ['arylsulfatase    STM0038', 'genetic association', 'human immunodeficiency virus infectious disease'] ['arylsulfatase    STM0038', 'genetic association', 'obesity']
ASK WHERE { VALUES ( ?j ) { ( resource:obesity ) ( resource:tetralogy_of_Fallot ) ( resource:lung_cancer ) } . resource:arylsulfatase____STM0038 property:genetic_association ?j }
[]
nucleic acid sequence
SYSTEM
NO
(Q23251500,P2293,Q8277) (Q23251500,P2293,Q18556697) (Q23251500,P2293,Q12174)
action is_in
entity prev_answer
action find
entity Q23251500
relation P2293
[ANSWER]
['Q23251500', 'P2293', 'Q8277'] ['Q23251500', 'P2293', 'Q18556697'] ['Q23251500', 'P2293', 'Q12174']
ASK WHERE { VALUES ( ?j ) { ( resource:Q12174 ) ( resource:Q1126831 ) ( resource:Q47912 ) } . resource:Q23251500 property:P2293 ?j }
No
action is_in
entity prev_answer
action find
entity arylsulfatase    STM0038
relation genetic association
['arylsulfatase    STM0038', 'genetic association', 'multiple sclerosis'] ['arylsulfatase    STM0038', 'genetic association', 'human immunodeficiency virus infectious disease'] ['arylsulfatase    STM0038', 'genetic association', 'obesity']
ASK WHERE { VALUES ( ?j ) { ( resource:obesity ) ( resource:tetralogy_of_Fallot ) ( resource:lung_cancer ) } . resource:arylsulfatase____STM0038 property:genetic_association ?j }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q4366062
P1542
Q2057971 Q79529 Q12136
USER
Which health problems are the effects of more number of chemical substances or diseases than Pneumococcal infection ?
(c(Q79529)|c(Q12136),P1542,c(Q2057971))
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q79529
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q4366062
relation P1542
type Q79529
type Q12136
[[{'concept': 'Q79529'}, {'concept': 'Q12136'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { { ?k rdf:type ontology:Q79529 } UNION { ?k rdf:type ontology:Q12136 } } . ?k property:P1542 resource:Q4366062 } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q79529 } UNION { ?r property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q12136 } } GROUP BY ?s } }
Pneumococcal infection
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type chemical substance
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity Pneumococcal infection
relation cause of
type chemical substance
type disease
[[{'concept': 'chemical substance'}, {'concept': 'disease'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { { ?k rdf:type ontology:chemical_substance } UNION { ?k rdf:type ontology:disease } } . ?k property:cause_of resource:Pneumococcal_infection } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:cause_of ?s . ?s rdf:type ontology:health_problem . ?r rdf:type ontology:chemical_substance } UNION { ?r property:cause_of ?s . ?s rdf:type ontology:health_problem . ?r rdf:type ontology:disease } } GROUP BY ?s } }
[]
health problem chemical substance disease
Q208414 Q47912 Q147778
SYSTEM
lymphoma, lung cancer, liver cirrhosis
Q229256 Q13452408 Q835061 Q147778 Q623031 Q208414 Q127724 Q5445 Q47912 Q68833 Q431643
(c(Q79529)|c(Q12136),P1542,c(Q2057971))
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q79529
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q4366062
relation P1542
type Q79529
type Q12136
[ANSWERS] are the effects of more number of chemical substances or diseases than Pneumococcal infection
[[{'concept': 'Q79529'}, {'concept': 'Q12136'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { { ?k rdf:type ontology:Q79529 } UNION { ?k rdf:type ontology:Q12136 } } . ?k property:P1542 resource:Q4366062 } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q79529 } UNION { ?r property:P1542 ?s . ?s rdf:type ontology:Q2057971 . ?r rdf:type ontology:Q12136 } } GROUP BY ?s } }
dermatitis neuropathy mastitis liver cirrhosis liver cancer lymphoma cataract anemia lung cancer bone fracture microcephaly
Lymphoma, lung cancer and liver cirrhosis are the effects of more number of chemical substances or diseases than Pneumococcal infection
lymphoma lung cancer liver cirrhosis
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type chemical substance
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity Pneumococcal infection
relation cause of
type chemical substance
type disease
[[{'concept': 'chemical substance'}, {'concept': 'disease'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?s WHERE { FILTER ( ?j > ?n ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { { ?k rdf:type ontology:chemical_substance } UNION { ?k rdf:type ontology:disease } } . ?k property:cause_of resource:Pneumococcal_infection } } . { SELECT DISTINCT ?s ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:cause_of ?s . ?s rdf:type ontology:health_problem . ?r rdf:type ontology:chemical_substance } UNION { ?r property:cause_of ?s . ?s rdf:type ontology:health_problem . ?r rdf:type ontology:disease } } GROUP BY ?s } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q12204
P1542
Q2057971 Q79529 Q12136
USER
And also tell me about tuberculosis?
(c(Q79529)|c(Q12136),P1542,c(Q2057971))
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q79529
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q12204
relation P1542
type Q79529
type Q12136
[[{'concept': 'Q79529'}, {'concept': 'Q12136'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P1542 resource:Q12204 . { VALUES ( ?j ) { ( ontology:Q79529 ) ( ontology:Q12136 ) } . ?w rdf:type ?j } } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:P1542 ?u . ?u rdf:type ontology:Q2057971 . ?k rdf:type ontology:Q79529 } UNION { ?k property:P1542 ?u . ?u rdf:type ontology:Q2057971 . ?k rdf:type ontology:Q12136 } } GROUP BY ?u } }
tuberculosis
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type chemical substance
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity tuberculosis
relation cause of
type chemical substance
type disease
[[{'concept': 'chemical substance'}, {'concept': 'disease'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:cause_of resource:tuberculosis . { VALUES ( ?j ) { ( ontology:chemical_substance ) ( ontology:disease ) } . ?w rdf:type ?j } } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:cause_of ?u . ?u rdf:type ontology:health_problem . ?k rdf:type ontology:chemical_substance } UNION { ?k property:cause_of ?u . ?u rdf:type ontology:health_problem . ?k rdf:type ontology:disease } } GROUP BY ?u } }
[]
health problem chemical substance disease
Q208414 Q47912 Q147778
SYSTEM
lymphoma, lung cancer, liver cirrhosis
Q229256 Q13452408 Q835061 Q147778 Q623031 Q208414 Q127724 Q5445 Q47912 Q68833 Q431643
(c(Q79529)|c(Q12136),P1542,c(Q2057971))
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q79529
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q12136
action count
action filter_multi_types
action find_reverse
entity Q12204
relation P1542
type Q79529
type Q12136
[ANSWERS]
[[{'concept': 'Q79529'}, {'concept': 'Q12136'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:P1542 resource:Q12204 . { VALUES ( ?j ) { ( ontology:Q79529 ) ( ontology:Q12136 ) } . ?w rdf:type ?j } } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:P1542 ?u . ?u rdf:type ontology:Q2057971 . ?k rdf:type ontology:Q79529 } UNION { ?k property:P1542 ?u . ?u rdf:type ontology:Q2057971 . ?k rdf:type ontology:Q12136 } } GROUP BY ?u } }
dermatitis neuropathy mastitis liver cirrhosis liver cancer lymphoma cataract anemia lung cancer bone fracture microcephaly
lymphoma lung cancer liver cirrhosis
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type chemical substance
action find_reverse_tuple_counts
relation cause of
type health problem
type disease
action count
action filter_multi_types
action find_reverse
entity tuberculosis
relation cause of
type chemical substance
type disease
[[{'concept': 'chemical substance'}, {'concept': 'disease'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { ?w property:cause_of resource:tuberculosis . { VALUES ( ?j ) { ( ontology:chemical_substance ) ( ontology:disease ) } . ?w rdf:type ?j } } } . FILTER ( ?i > ?g ) . { SELECT DISTINCT ?u ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:cause_of ?u . ?u rdf:type ontology:health_problem . ?k rdf:type ontology:chemical_substance } UNION { ?k property:cause_of ?u . ?u rdf:type ontology:health_problem . ?k rdf:type ontology:disease } } GROUP BY ?u } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P828
Q2996394 Q2057971
USER
Which biological processes are the causes of around 1 health problem ?
(c(Q2057971),P828,c(Q2996394))
action approx
action find_reverse_tuple_counts
relation P828
type Q2996394
type Q2057971
value 1
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q2996394'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ontology:Q2057971 . ?s rdf:type ontology:Q2996394 . ?q property:P828 ?s } GROUP BY ?s } . FILTER ( ?n = 1 ) }
action approx
action find_reverse_tuple_counts
relation has cause
type biological process
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'biological process'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ontology:health_problem . ?s rdf:type ontology:biological_process . ?q property:has_cause ?s } GROUP BY ?s } . FILTER ( ?n = 1 ) }
[]
biological process health problem
Q9530 Q744962 Q6736610
SYSTEM
breathing, Chromosome abnormality, trinucleotide repeat expansion
Q9530 Q744962 Q6736610 Q746284 Q5552256 Q656732
(c(Q2057971),P828,c(Q2996394))
action approx
action find_reverse_tuple_counts
relation P828
type Q2996394
type Q2057971
value 1
[ANSWERS] are the causes of around 1 health problem
[{'concept': 'Q2057971'}, 'P828', {'concept': 'Q2996394'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ontology:Q2057971 . ?s rdf:type ontology:Q2996394 . ?q property:P828 ?s } GROUP BY ?s } . FILTER ( ?n = 1 ) }
breathing Chromosome abnormality trinucleotide repeat expansion Gene duplication germline mutation deletion mutation
Breathing, Chromosome abnormality and trinucleotide repeat expansion are the causes of around 1 health problem
breathing Chromosome abnormality trinucleotide repeat expansion
action approx
action find_reverse_tuple_counts
relation has cause
type biological process
type health problem
value 1
[{'concept': 'health problem'}, 'has cause', {'concept': 'biological process'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?q ) AS ?n ) WHERE { ?q rdf:type ontology:health_problem . ?s rdf:type ontology:biological_process . ?q property:has_cause ?s } GROUP BY ?s } . FILTER ( ?n = 1 ) }
[]