Simple Question (Direct)
Simple Question
Q4700971
P136
Q151885
USER
What is the genre of Akiko Kobayashi ?
(Q4700971,P136,c(Q151885))
action filter_type
action find
entity Q4700971
relation P136
type Q151885
['Q4700971', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { resource:Q4700971 property:P136 ?z . ?z rdf:type ontology:Q151885 }
Akiko Kobayashi
action filter_type
action find
entity Akiko Kobayashi
relation genre
type concept
['Akiko Kobayashi', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { resource:Akiko_Kobayashi property:genre ?z . ?z rdf:type ontology:concept }
[]
concept
Q131578
SYSTEM
J-pop
Q131578
(Q4700971,P136,c(Q151885))
action filter_type
action find
entity Q4700971
relation P136
type Q151885
The genre of Akiko Kobayashi is a [ANSWER]
['Q4700971', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?z WHERE { resource:Q4700971 property:P136 ?z . ?z rdf:type ontology:Q151885 }
J-pop
The genre of Akiko Kobayashi is a J-pop
J-pop
action filter_type
action find
entity Akiko Kobayashi
relation genre
type concept
['Akiko Kobayashi', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?z WHERE { resource:Akiko_Kobayashi property:genre ?z . ?z rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4700971
P734
Q82799
USER
Which name is associated with Akiko Kobayashi ?
(Q4700971,P734,c(Q82799))
action filter_type
action find
entity Q4700971
relation P734
type Q82799
['Q4700971', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q4700971 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Akiko Kobayashi
action filter_type
action find
entity Akiko Kobayashi
relation family name
type name
['Akiko Kobayashi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Akiko_Kobayashi property:family_name ?n . ?n rdf:type ontology:name }
[]
name
Q947991
SYSTEM
Kobayashi
Q947991
(Q4700971,P734,c(Q82799))
action filter_type
action find
entity Q4700971
relation P734
type Q82799
To [ANSWER] is associated with Akiko [ANSWER]
['Q4700971', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?n WHERE { resource:Q4700971 property:P734 ?n . ?n rdf:type ontology:Q82799 }
Kobayashi
To Kobayashi is associated with Akiko Kobayashi
Kobayashi
action filter_type
action find
entity Akiko Kobayashi
relation family name
type name
['Akiko Kobayashi', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?n WHERE { resource:Akiko_Kobayashi property:family_name ?n . ?n rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4700971
P21
Q290
USER
What is the sex of Akiko Kobayashi ?
(Q4700971,P21,c(Q290))
action filter_type
action find
entity Q4700971
relation P21
type Q290
['Q4700971', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q4700971 property:P21 ?x . ?x rdf:type ontology:Q290 }
Akiko Kobayashi
action filter_type
action find
entity Akiko Kobayashi
relation gender
type sex
['Akiko Kobayashi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Akiko_Kobayashi property:gender ?x . ?x rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q4700971,P21,c(Q290))
action filter_type
action find
entity Q4700971
relation P21
type Q290
The sex of Akiko Kobayashi is the [ANSWER]
['Q4700971', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?x WHERE { resource:Q4700971 property:P21 ?x . ?x rdf:type ontology:Q290 }
female
The sex of Akiko Kobayashi is the female
female
action filter_type
action find
entity Akiko Kobayashi
relation gender
type sex
['Akiko Kobayashi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?x WHERE { resource:Akiko_Kobayashi property:gender ?x . ?x rdf:type ontology:sex }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1420587
P407
Q34770 Q82799
USER
Which languages are more number of names composed in than Høgnorsk ?
(c(Q82799),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q1420587
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q1420587 property:P407 ?l . ?l rdf:type ontology:Q34770 } } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:P407 ?u . ?u rdf:type ontology:Q34770 . ?q rdf:type ontology:Q82799 } GROUP BY ?u } }
Høgnorsk
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Høgnorsk
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Høgnorsk property:language_of_work_or_name ?l . ?l rdf:type ontology:language } } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?q rdf:type ontology:name } GROUP BY ?u } }
[]
language name
Q1860 Q397 Q9056
SYSTEM
English, Latin, Czech
Q1860 Q8785 Q1321 Q397 Q9056 Q8752 Q652 Q35505 Q56982 Q35308
(c(Q82799),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q1420587
relation P407
type Q34770
[ANSWERS] are more number of names composed in than Høgnorsk
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Q1420587 property:P407 ?l . ?l rdf:type ontology:Q34770 } } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:P407 ?u . ?u rdf:type ontology:Q34770 . ?q rdf:type ontology:Q82799 } GROUP BY ?u } }
English Armenian Spanish Latin Czech Basque Italian Old Norse language Judaeo-Portuguese Old Irish
English, Latin and Czech are more number of names composed in than Høgnorsk
English Latin Czech
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Høgnorsk
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?e ) WHERE { resource:Høgnorsk property:language_of_work_or_name ?l . ?l rdf:type ontology:language } } . FILTER ( ?v > ?e ) . { SELECT DISTINCT ?u ( COUNT ( ?q ) AS ?v ) WHERE { ?q property:language_of_work_or_name ?u . ?u rdf:type ontology:language . ?q rdf:type ontology:name } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q18130932
P407
Q34770 Q82799
USER
And also tell me about Traditional Chinese?
(c(Q82799),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q18130932
relation P407
type Q34770
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:Q34770 . resource:Q18130932 property:P407 ?v } } . FILTER ( ?k > ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P407 ?y . ?y rdf:type ontology:Q34770 . ?i rdf:type ontology:Q82799 } GROUP BY ?y } }
Traditional Chinese
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Traditional Chinese
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:language . resource:Traditional_Chinese property:language_of_work_or_name ?v } } . FILTER ( ?k > ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:language_of_work_or_name ?y . ?y rdf:type ontology:language . ?i rdf:type ontology:name } GROUP BY ?y } }
[]
language name
Q1860 Q397 Q9056
SYSTEM
English, Latin, Czech
Q1860 Q8785 Q1321 Q397 Q9056 Q8752 Q652 Q35505 Q56982 Q35308
(c(Q82799),P407,c(Q34770))
action greater
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
action count
action filter_type
action find
entity Q18130932
relation P407
type Q34770
[ANSWERS]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:Q34770 . resource:Q18130932 property:P407 ?v } } . FILTER ( ?k > ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:P407 ?y . ?y rdf:type ontology:Q34770 . ?i rdf:type ontology:Q82799 } GROUP BY ?y } }
English Armenian Spanish Latin Czech Basque Italian Old Norse language Judaeo-Portuguese Old Irish
English Latin Czech
action greater
action find_reverse_tuple_counts
relation language of work or name
type language
type name
action count
action filter_type
action find
entity Traditional Chinese
relation language of work or name
type language
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?r ) WHERE { ?v rdf:type ontology:language . resource:Traditional_Chinese property:language_of_work_or_name ?v } } . FILTER ( ?k > ?r ) . { SELECT DISTINCT ?y ( COUNT ( ?i ) AS ?k ) WHERE { ?i property:language_of_work_or_name ?y . ?y rdf:type ontology:language . ?i rdf:type ontology:name } GROUP BY ?y } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1860
P629
Q571
USER
Which book is an edition or translation of that language ?
(c(Q571),P629,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P629
type Q571
[{'concept': 'Q571'}, 'P629', 'Q1860']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q571 . ?v property:P629 resource:Q1860 }
English
action filter_type
action find_reverse
entity English
relation edition or translation of
type book
[{'concept': 'book'}, 'edition or translation of', 'English']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:book . ?v property:edition_or_translation_of resource:English }
[]
book
Clarification for simple ques.
Q1860
SYSTEM
Did you mean English ?
Q1860 Q397 Q9056
(c(Q571),P629,Q1860) (c(Q571),P629,Q397) (c(Q571),P629,Q9056)
[ANSWER]
[{'concept': 'Q571'}, 'P629', 'Q1860'] [{'concept': 'Q571'}, 'P629', 'Q397'] [{'concept': 'Q571'}, 'P629', 'Q9056']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q571 . ?v property:P629 resource:Q1860 }
English Latin Czech
Did you mean English ?
English
[{'concept': 'book'}, 'edition or translation of', 'English'] [{'concept': 'book'}, 'edition or translation of', 'Latin'] [{'concept': 'book'}, 'edition or translation of', 'Czech']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:book . ?v property:edition_or_translation_of resource:English }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q571),P629,Q1860)
[{'concept': 'Q571'}, 'P629', 'Q1860']
[{'concept': 'book'}, 'edition or translation of', 'English']
[]
Q24036077
SYSTEM
Two Addresses from the Governour, Council and Convention of the Massachusets Colony
Q24036077
(c(Q571),P629,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P629
type Q571
[ANSWER] is an edition or translation of that language
[{'concept': 'Q571'}, 'P629', 'Q1860']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q571 . ?v property:P629 resource:Q1860 }
Two Addresses from the Governour, Council and Convention of the Massachusets Colony
Two Addresses from the Governour, Council and Convention of the Massachusets Colony is an edition or translation of that language
Two Addresses from the Governour, Council and Convention of the Massachusets Colony
action filter_type
action find_reverse
entity English
relation edition or translation of
type book
[{'concept': 'book'}, 'edition or translation of', 'English']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:book . ?v property:edition_or_translation_of resource:English }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q24036077 Q7518325
P50
Q502895
USER
Did Simon Bradstreet write Two Addresses from the Governour, Council and Convention of the Massachusets Colony ?
(Q24036077,P50,Q7518325)
action is_in
entity Q7518325
action find
entity Q24036077
relation P50
['Q24036077', 'P50', 'Q7518325']
ASK WHERE { resource:Q24036077 property:P50 resource:Q7518325 }
Two Addresses from the Governour, Council and Convention of the Massachusets Colony Simon Bradstreet
action is_in
entity Simon Bradstreet
action find
entity Two Addresses from the Governour, Council and Convention of the Massachusets Colony
relation author
['Two Addresses from the Governour, Council and Convention of the Massachusets Colony', 'author', 'Simon Bradstreet']
ASK WHERE { resource:Two_Addresses_from_the_Governour,_Council_and_Convention_of_the_Massachusets_Colony property:author resource:Simon_Bradstreet }
[]
common name
SYSTEM
YES
(Q24036077,P50,Q7518325)
action is_in
entity Q7518325
action find
entity Q24036077
relation P50
[ANSWER]
['Q24036077', 'P50', 'Q7518325']
ASK WHERE { resource:Q24036077 property:P50 resource:Q7518325 }
Yes
action is_in
entity Simon Bradstreet
action find
entity Two Addresses from the Governour, Council and Convention of the Massachusets Colony
relation author
['Two Addresses from the Governour, Council and Convention of the Massachusets Colony', 'author', 'Simon Bradstreet']
ASK WHERE { resource:Two_Addresses_from_the_Governour,_Council_and_Convention_of_the_Massachusets_Colony property:author resource:Simon_Bradstreet }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P407
Q34770 Q2031291 Q482994
USER
How many languages are atmost 6436 releases or albums composed in ?
(c(Q2031291)|c(Q482994),P407,c(Q34770))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
value 6436
[[{'concept': 'Q2031291'}, {'concept': 'Q482994'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:P407 ?b . ?b rdf:type ontology:Q34770 . ?w rdf:type ontology:Q482994 } UNION { ?w property:P407 ?b . ?b rdf:type ontology:Q34770 . ?w rdf:type ontology:Q2031291 } } GROUP BY ?b } . FILTER ( ?k <= 6436 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action find_reverse_tuple_counts
relation language of work or name
type language
type album
value 6436
[[{'concept': 'release'}, {'concept': 'album'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:language_of_work_or_name ?b . ?b rdf:type ontology:language . ?w rdf:type ontology:album } UNION { ?w property:language_of_work_or_name ?b . ?b rdf:type ontology:language . ?w rdf:type ontology:release } } GROUP BY ?b } . FILTER ( ?k <= 6436 ) }
[]
language release album
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q2031291)|c(Q482994),P407,c(Q34770))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
action find_reverse_tuple_counts
relation P407
type Q34770
type Q482994
value 6436
[ANSWER]
[[{'concept': 'Q2031291'}, {'concept': 'Q482994'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:P407 ?b . ?b rdf:type ontology:Q34770 . ?w rdf:type ontology:Q482994 } UNION { ?w property:P407 ?b . ?b rdf:type ontology:Q34770 . ?w rdf:type ontology:Q2031291 } } GROUP BY ?b } . FILTER ( ?k <= 6436 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action atmost
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type release
action find_reverse_tuple_counts
relation language of work or name
type language
type album
value 6436
[[{'concept': 'release'}, {'concept': 'album'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:language_of_work_or_name ?b . ?b rdf:type ontology:language . ?w rdf:type ontology:album } UNION { ?w property:language_of_work_or_name ?b . ?b rdf:type ontology:language . ?w rdf:type ontology:release } } GROUP BY ?b } . FILTER ( ?k <= 6436 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1996998 Q4700971
P19
Q56061
USER
Which administrative territories are the places of birth of Akiko Kobayashi or Norbert Marohn ?
OR((Q4700971,P19,c(Q56061)), (Q1996998,P19,c(Q56061)))
action filter_type
action union
action find
entity Q4700971
relation P19
action find
entity Q1996998
relation P19
type Q56061
{'OR': [['Q4700971', 'P19', {'concept': 'Q56061'}], ['Q1996998', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { ?w property:P19 ?v . VALUES ( ?w ) { ( resource:Q4700971 ) ( resource:Q1996998 ) } } . ?v rdf:type ontology:Q56061 }
Norbert Marohn Akiko Kobayashi
action filter_type
action union
action find
entity Akiko Kobayashi
relation place of birth
action find
entity Norbert Marohn
relation place of birth
type administrative territorial entity
{'OR': [['Akiko Kobayashi', 'place of birth', {'concept': 'administrative territorial entity'}], ['Norbert Marohn', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?w property:place_of_birth ?v . VALUES ( ?w ) { ( resource:Akiko_Kobayashi ) ( resource:Norbert_Marohn ) } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1490 Q16085
SYSTEM
Tokyo, Neuruppin
Q1490 Q16085
OR((Q4700971,P19,c(Q56061)), (Q1996998,P19,c(Q56061)))
action filter_type
action union
action find
entity Q4700971
relation P19
action find
entity Q1996998
relation P19
type Q56061
[ANSWERS] are the places of birth of Akiko Kobayashi or Norbert Marohn
{'OR': [['Q4700971', 'P19', {'concept': 'Q56061'}], ['Q1996998', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { ?w property:P19 ?v . VALUES ( ?w ) { ( resource:Q4700971 ) ( resource:Q1996998 ) } } . ?v rdf:type ontology:Q56061 }
Tokyo Neuruppin
Tokyo and Neuruppin are the places of birth of Akiko Kobayashi or Norbert Marohn
Tokyo Neuruppin
action filter_type
action union
action find
entity Akiko Kobayashi
relation place of birth
action find
entity Norbert Marohn
relation place of birth
type administrative territorial entity
{'OR': [['Akiko Kobayashi', 'place of birth', {'concept': 'administrative territorial entity'}], ['Norbert Marohn', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?w property:place_of_birth ?v . VALUES ( ?w ) { ( resource:Akiko_Kobayashi ) ( resource:Norbert_Marohn ) } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1320251
P636
Q151885 Q8386 Q79529
USER
How many concepts are the routes of administration of greater number of drugs and chemical substances than Intrathecal ?
(c(Q8386)|c(Q79529),P636,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action count
action filter_multi_types
action find_reverse
entity Q1320251
relation P636
type Q8386
type Q79529
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q8386 ) ( ontology:Q79529 ) } . ?h rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P636 resource:Q1320251 . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q79529 ) ( ontology:Q8386 ) } } } } . FILTER ( ?v > ?p ) }
Intrathecal
action count
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action count
action filter_multi_types
action find_reverse
entity Intrathecal
relation route of administration
type drug
type chemical substance
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:drug ) ( ontology:chemical_substance ) } . ?h rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:route_of_administration resource:Intrathecal . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:chemical_substance ) ( ontology:drug ) } } } } . FILTER ( ?v > ?p ) }
[]
concept drug chemical substance
SYSTEM
9
Q419892 Q420054 Q640448 Q7833952 Q1369403 Q285166 Q16920397 Q16861468 Q784720
(c(Q8386)|c(Q79529),P636,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action count
action filter_multi_types
action find_reverse
entity Q1320251
relation P636
type Q8386
type Q79529
[ANSWER]
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:Q8386 ) ( ontology:Q79529 ) } . ?h rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:P636 resource:Q1320251 . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:Q79529 ) ( ontology:Q8386 ) } } } } . FILTER ( ?v > ?p ) }
rectal topical medication intravenous infusion transdermal intravenous injection oral administration conjunctival intra-arterial infusion sublingual administration
9
action count
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action count
action filter_multi_types
action find_reverse
entity Intrathecal
relation route of administration
type drug
type chemical substance
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?z ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?h ) AS ?v ) WHERE { VALUES ( ?w ) { ( ontology:drug ) ( ontology:chemical_substance ) } . ?h rdf:type ?w } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?p ) WHERE { ?c property:route_of_administration resource:Intrathecal . { ?c rdf:type ?r . VALUES ( ?r ) { ( ontology:chemical_substance ) ( ontology:drug ) } } } } . FILTER ( ?v > ?p ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q784720
P636
Q151885 Q8386 Q79529
USER
And what about sublingual administration?
(c(Q8386)|c(Q79529),P636,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action count
action filter_multi_types
action find_reverse
entity Q784720
relation P636
type Q8386
type Q79529
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:P636 ?g . ?p rdf:type ontology:Q8386 . ?g rdf:type ontology:Q151885 } UNION { ?p property:P636 ?g . ?g rdf:type ontology:Q151885 . ?p rdf:type ontology:Q79529 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:P636 resource:Q784720 . { { ?a rdf:type ontology:Q8386 } UNION { ?a rdf:type ontology:Q79529 } } } } . FILTER ( ?d > ?l ) }
sublingual administration
action count
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action count
action filter_multi_types
action find_reverse
entity sublingual administration
relation route of administration
type drug
type chemical substance
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:route_of_administration ?g . ?p rdf:type ontology:drug . ?g rdf:type ontology:concept } UNION { ?p property:route_of_administration ?g . ?g rdf:type ontology:concept . ?p rdf:type ontology:chemical_substance } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:route_of_administration resource:sublingual_administration . { { ?a rdf:type ontology:drug } UNION { ?a rdf:type ontology:chemical_substance } } } } . FILTER ( ?d > ?l ) }
[]
concept drug chemical substance
SYSTEM
6
Q419892 Q420054 Q640448 Q1369403 Q285166 Q16861468
(c(Q8386)|c(Q79529),P636,c(Q151885))
action count
action greater
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q8386
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action count
action filter_multi_types
action find_reverse
entity Q784720
relation P636
type Q8386
type Q79529
[ANSWER]
[[{'concept': 'Q8386'}, {'concept': 'Q79529'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:P636 ?g . ?p rdf:type ontology:Q8386 . ?g rdf:type ontology:Q151885 } UNION { ?p property:P636 ?g . ?g rdf:type ontology:Q151885 . ?p rdf:type ontology:Q79529 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:P636 resource:Q784720 . { { ?a rdf:type ontology:Q8386 } UNION { ?a rdf:type ontology:Q79529 } } } } . FILTER ( ?d > ?l ) }
rectal topical medication intravenous infusion intravenous injection oral administration intra-arterial infusion
6
action count
action greater
action union
action find_reverse_tuple_counts
relation route of administration
type concept
type drug
action find_reverse_tuple_counts
relation route of administration
type concept
type chemical substance
action count
action filter_multi_types
action find_reverse
entity sublingual administration
relation route of administration
type drug
type chemical substance
[[{'concept': 'drug'}, {'concept': 'chemical substance'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?z ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?p ) AS ?d ) WHERE { { ?p property:route_of_administration ?g . ?p rdf:type ontology:drug . ?g rdf:type ontology:concept } UNION { ?p property:route_of_administration ?g . ?g rdf:type ontology:concept . ?p rdf:type ontology:chemical_substance } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { ?a property:route_of_administration resource:sublingual_administration . { { ?a rdf:type ontology:drug } UNION { ?a rdf:type ontology:chemical_substance } } } } . FILTER ( ?d > ?l ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P364
Q34770 Q2342494 Q15416
USER
How many languages were used originally for the creation of around 5743 collectables and television programs ?
(c(Q2342494)|c(Q15416),P364,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
value 5743
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?r ) WHERE { { ?k property:P364 ?n . ?k rdf:type ontology:Q2342494 . ?n rdf:type ontology:Q34770 } UNION { ?k property:P364 ?n . ?n rdf:type ontology:Q34770 . ?k rdf:type ontology:Q15416 } } GROUP BY ?n } . FILTER ( ?r = 5743 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action find_reverse_tuple_counts
relation original language of work
type language
type television program
value 5743
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?r ) WHERE { { ?k property:original_language_of_work ?n . ?k rdf:type ontology:collectable . ?n rdf:type ontology:language } UNION { ?k property:original_language_of_work ?n . ?n rdf:type ontology:language . ?k rdf:type ontology:television_program } } GROUP BY ?n } . FILTER ( ?r = 5743 ) }
[]
language collectable television program
SYSTEM
31
Q132659 Q13414913 Q13211 Q35499 Q35668 Q8785 Q1072111 Q34909 Q36765 Q33251 Q18130932 Q35726 Q36206 Q1321 Q33976 Q397 Q10862919 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q56530 Q25164 Q36790 Q29977 Q182695 Q3110592 Q837985 Q783605
(c(Q2342494)|c(Q15416),P364,c(Q34770))
action count
action approx
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q2342494
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
value 5743
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q15416'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?r ) WHERE { { ?k property:P364 ?n . ?k rdf:type ontology:Q2342494 . ?n rdf:type ontology:Q34770 } UNION { ?k property:P364 ?n . ?n rdf:type ontology:Q34770 . ?k rdf:type ontology:Q15416 } } GROUP BY ?n } . FILTER ( ?r = 5743 ) }
Egyptian hieroglyphs Simplified Chinese Ruthenian Old Church Slavonic Hittite Armenian Galician-Portuguese Old Icelandic Demotic Church Slavonic Traditional Chinese Etruscan Lak Spanish Sardinian language Latin Tibetan language Czech Basque classical Chinese Italian Old Norse language Bokmål Wappo language Nynorsk Sumerian Gaulish Late Old Japanese written Chinese Middle High German Written vernacular Chinese
31
action count
action approx
action union
action find_reverse_tuple_counts
relation original language of work
type language
type collectable
action find_reverse_tuple_counts
relation original language of work
type language
type television program
value 5743
[[{'concept': 'collectable'}, {'concept': 'television program'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?q ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?r ) WHERE { { ?k property:original_language_of_work ?n . ?k rdf:type ontology:collectable . ?n rdf:type ontology:language } UNION { ?k property:original_language_of_work ?n . ?n rdf:type ontology:language . ?k rdf:type ontology:television_program } } GROUP BY ?n } . FILTER ( ?r = 5743 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1860
P361
Q5962346
USER
How many classification schemes are English a component of ?
(Q1860,P361,c(Q5962346))
action count
action filter_type
action find
entity Q1860
relation P361
type Q5962346
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q1860 property:P361 ?q . ?q rdf:type ontology:Q5962346 }
English
action count
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:English property:part_of ?q . ?q rdf:type ontology:classification_scheme }
[]
classification scheme
SYSTEM
2
Q1346342 Q5329170
(Q1860,P361,c(Q5962346))
action count
action filter_type
action find
entity Q1860
relation P361
type Q5962346
[ANSWER]
['Q1860', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:Q1860 property:P361 ?q . ?q rdf:type ontology:Q5962346 }
Anglic languages Anglo-Frisian languages
2
action count
action filter_type
action find
entity English
relation part of
type classification scheme
['English', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { resource:English property:part_of ?q . ?q rdf:type ontology:classification_scheme }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q2500615
P361
Q5962346
USER
And how about Mehen?
(Q2500615,P361,c(Q5962346))
action count
action filter_type
action find
entity Q2500615
relation P361
type Q5962346
['Q2500615', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Q2500615 property:P361 ?d . ?d rdf:type ontology:Q5962346 }
Mehen
action count
action filter_type
action find
entity Mehen
relation part of
type classification scheme
['Mehen', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Mehen property:part_of ?d . ?d rdf:type ontology:classification_scheme }
[]
classification scheme
SYSTEM
1
Q205740
(Q2500615,P361,c(Q5962346))
action count
action filter_type
action find
entity Q2500615
relation P361
type Q5962346
[ANSWER]
['Q2500615', 'P361', {'concept': 'Q5962346'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Q2500615 property:P361 ?d . ?d rdf:type ontology:Q5962346 }
Egyptian mythology
1
action count
action filter_type
action find
entity Mehen
relation part of
type classification scheme
['Mehen', 'part of', {'concept': 'classification scheme'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?r ) WHERE { resource:Mehen property:part_of ?d . ?d rdf:type ontology:classification_scheme }
[]