Simple Question (Direct)
Simple Question
Q452100
P264
Q334453
USER
Which divisions are the record brand of Fehlfarben ?
(Q452100,P264,c(Q334453))
action filter_type
action find
entity Q452100
relation P264
type Q334453
['Q452100', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?d WHERE { resource:Q452100 property:P264 ?d . ?d rdf:type ontology:Q334453 }
Fehlfarben
action filter_type
action find
entity Fehlfarben
relation record label
type division
['Fehlfarben', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?d WHERE { resource:Fehlfarben property:record_label ?d . ?d rdf:type ontology:division }
[]
division
Q323151 Q1251232
SYSTEM
Electrola, Tapete Records
Q323151 Q1251232
(Q452100,P264,c(Q334453))
action filter_type
action find
entity Q452100
relation P264
type Q334453
[ANSWERS] are the record brand of Fehlfarben
['Q452100', 'P264', {'concept': 'Q334453'}]
SELECT DISTINCT ?d WHERE { resource:Q452100 property:P264 ?d . ?d rdf:type ontology:Q334453 }
Electrola Tapete Records
Electrola and Tapete Records are the record brand of Fehlfarben
Electrola Tapete Records
action filter_type
action find
entity Fehlfarben
relation record label
type division
['Fehlfarben', 'record label', {'concept': 'division'}]
SELECT DISTINCT ?d WHERE { resource:Fehlfarben property:record_label ?d . ?d rdf:type ontology:division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q452100
P495
Q1048835
USER
What is the origin of Fehlfarben ?
(Q452100,P495,c(Q1048835))
action filter_type
action find
entity Q452100
relation P495
type Q1048835
['Q452100', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q452100 property:P495 ?l . ?l rdf:type ontology:Q1048835 }
Fehlfarben
action filter_type
action find
entity Fehlfarben
relation country of origin
type political territorial entity
['Fehlfarben', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Fehlfarben property:country_of_origin ?l . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q183
SYSTEM
Germany
Q183
(Q452100,P495,c(Q1048835))
action filter_type
action find
entity Q452100
relation P495
type Q1048835
The origin of Fehlfarben is in [ANSWER]
['Q452100', 'P495', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { resource:Q452100 property:P495 ?l . ?l rdf:type ontology:Q1048835 }
Germany
The origin of Fehlfarben is in Germany
Germany
action filter_type
action find
entity Fehlfarben
relation country of origin
type political territorial entity
['Fehlfarben', 'country of origin', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Fehlfarben property:country_of_origin ?l . ?l rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q452100
P136
Q151885
USER
Which concepts can be considered as genre of that band ?
(Q183,P136,c(Q151885))
action filter_type
action find
entity Q452100
relation P136
type Q151885
['Q183', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q151885 . resource:Q452100 property:P136 ?f }
Fehlfarben
action filter_type
action find
entity Fehlfarben
relation genre
type concept
['Germany', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:concept . resource:Fehlfarben property:genre ?f }
[]
concept
Q598929 Q646679
SYSTEM
post-punk, Neue Deutsche Welle
Q598929 Q646679
(Q183,P136,c(Q151885))
action filter_type
action find
entity Q452100
relation P136
type Q151885
And [ANSWERS] can be considered as genre of that band
['Q183', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q151885 . resource:Q452100 property:P136 ?f }
post-punk Neue Deutsche Welle
And post-punk and Neue Deutsche Welle can be considered as genre of that band
post-punk Neue Deutsche Welle
action filter_type
action find
entity Fehlfarben
relation genre
type concept
['Germany', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:concept . resource:Fehlfarben property:genre ?f }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q452100
P136
Q215380
USER
Do Fehlfarben have those concepts as genre ?
(Q452100,P136,Q598929) (Q452100,P136,Q646679)
action is_in
entity prev_answer
action find
entity Q452100
relation P136
['Q452100', 'P136', 'Q598929'] ['Q452100', 'P136', 'Q646679']
ASK WHERE { VALUES ( ?e ) { ( resource:Q598929 ) ( resource:Q646679 ) } . resource:Q452100 property:P136 ?e }
Fehlfarben
action is_in
entity prev_answer
action find
entity Fehlfarben
relation genre
['Fehlfarben', 'genre', 'post-punk'] ['Fehlfarben', 'genre', 'Neue Deutsche Welle']
ASK WHERE { VALUES ( ?e ) { ( resource:post-punk ) ( resource:Neue_Deutsche_Welle ) } . resource:Fehlfarben property:genre ?e }
[]
band
SYSTEM
YES
(Q452100,P136,Q598929) (Q452100,P136,Q646679)
action is_in
entity prev_answer
action find
entity Q452100
relation P136
[ANSWER]
['Q452100', 'P136', 'Q598929'] ['Q452100', 'P136', 'Q646679']
ASK WHERE { VALUES ( ?e ) { ( resource:Q598929 ) ( resource:Q646679 ) } . resource:Q452100 property:P136 ?e }
Yes
action is_in
entity prev_answer
action find
entity Fehlfarben
relation genre
['Fehlfarben', 'genre', 'post-punk'] ['Fehlfarben', 'genre', 'Neue Deutsche Welle']
ASK WHERE { VALUES ( ?e ) { ( resource:post-punk ) ( resource:Neue_Deutsche_Welle ) } . resource:Fehlfarben property:genre ?e }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q323151 Q4347324
P17
Q1048835
USER
Is Electrola situated in Pakhar ?
(Q323151,P17,Q4347324)
action is_in
entity Q4347324
action find
entity Q323151
relation P17
['Q323151', 'P17', 'Q4347324']
ASK WHERE { resource:Q323151 property:P17 resource:Q4347324 }
Electrola Pakhar
action is_in
entity Pakhar
action find
entity Electrola
relation country
['Electrola', 'country', 'Pakhar']
ASK WHERE { resource:Electrola property:country resource:Pakhar }
[]
political territorial entity
SYSTEM
NO
(Q323151,P17,Q4347324)
action is_in
entity Q4347324
action find
entity Q323151
relation P17
[ANSWER]
['Q323151', 'P17', 'Q4347324']
ASK WHERE { resource:Q323151 property:P17 resource:Q4347324 }
No
action is_in
entity Pakhar
action find
entity Electrola
relation country
['Electrola', 'country', 'Pakhar']
ASK WHERE { resource:Electrola property:country resource:Pakhar }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1348763
P706
Q107425 Q151885
USER
How many landscapes are the location where approximately the same number of concepts are located as Magdalen Islands ?
(c(Q151885),P706,c(Q107425))
action count
action approx
action find_reverse_tuple_counts
relation P706
type Q107425
type Q151885
action count
action filter_type
action find
entity Q1348763
relation P706
type Q107425
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:P706 ?i . ?i rdf:type ontology:Q107425 . ?x rdf:type ontology:Q151885 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q1348763 property:P706 ?m . ?m rdf:type ontology:Q107425 } } . FILTER ( ?c = ?d ) }
Magdalen Islands
action count
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type concept
action count
action filter_type
action find
entity Magdalen Islands
relation located on terrain feature
type landscape
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:located_on_terrain_feature ?i . ?i rdf:type ontology:landscape . ?x rdf:type ontology:concept } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Magdalen_Islands property:located_on_terrain_feature ?m . ?m rdf:type ontology:landscape } } . FILTER ( ?c = ?d ) }
[]
landscape concept
SYSTEM
104
Q537749 Q5238909 Q3593572 Q201698 Q184355 Q218907 Q205711 Q171132 Q3628422 Q6549341 Q1133595 Q122641 Q46623 Q7361436 Q26399 Q1371403 Q83788 Q3437341 Q181528 Q3182351 Q15622837 Q8534941 Q5053601 Q3298193 Q47141 Q846021 Q189429 Q1670250 Q7296 Q3803 Q152704 Q2618638 Q1124865 Q140298 Q170383 Q3297553 Q303431 Q1142129 Q271674 Q671343 Q925906 Q152928 Q6583 Q17140346 Q162843 Q93259 Q116693 Q2860207 Q1384782 Q1283 Q855658 Q775944 Q46772 Q119206 Q472207 Q202816 Q924257 Q10688475 Q5312305 Q3237 Q7592509 Q211436 Q12707 Q172691 Q6379939 Q5467845 Q5951207 Q924897 Q645941 Q140948 Q634740 Q829084 Q291004 Q212520 Q620481 Q1127200 Q19730761 Q2135927 Q1919137 Q205695 Q2280216 Q207383 Q128172 Q586512 Q192626 Q75596 Q38095 Q180209 Q81052 Q2364593 Q118350 Q797807 Q292647 Q23011164 Q653732 Q753719 Q272521 Q1348763 Q15139 Q118920 Q913470 Q1252239 Q25046183 Q304679
(c(Q151885),P706,c(Q107425))
action count
action approx
action find_reverse_tuple_counts
relation P706
type Q107425
type Q151885
action count
action filter_type
action find
entity Q1348763
relation P706
type Q107425
[ANSWER]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:P706 ?i . ?i rdf:type ontology:Q107425 . ?x rdf:type ontology:Q151885 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Q1348763 property:P706 ?m . ?m rdf:type ontology:Q107425 } } . FILTER ( ?c = ?d ) }
Florida Keys Svenska Högarna Apostle Islands Crozet Islands Mojave Desert Sharon Plain Solovetsky Islands Cyclades Madeira Islands Limestone Massif Meridiani Planum Lechquellen Mountains Prince Edward Islands Rolwaling Himal Hoggar Mountains Similan Islands Cordillera Central Roc de Chère National Nature Reserve Libyan Desert Plain of the Cul-de-Sac Guaniguanico Cerro de la Neblina Cato Reef Borg Massif Atacama Desert Southern Coral Group Sonoran Desert Jenolan Caves Mount Kilimanjaro Lesser Sunda Islands Gailtal Alps Upland Minsk Kantō Plain Windward Islands Aïr Mountains Amargosa Desert Ufenau Pearl Islands Phoenix Islands Mont Blanc massif Colorado Plateau Carnic Prealps Sahara Ko Yao archipelago Negev Lesser Antilles Esjan Queen Adelaide Archipelago Tanezrouft Dolomites Chihuahuan Desert Bărăgan Plain Kerguelen Islands Julian Alps Amirante Islands Stora Alvaret Mahalangur Himal Söderarm archipelago Dufek Massif Rügen St Anthony Head Visayas Great Plains Thar Desert Kawdy Plateau Ford Massif Huvudskär Seychelles Inner Islands Argentine Islands South Shetland Islands Comoros Islands Vegaøyan Highlands of Iceland Lower Rhine Plain Alphonse Group Louisiade Archipelago Phraya Nakhon Cave Red Centre Melchior Islands Mascarene Islands Gran Paradiso massif South Orkney Islands Île d'Orléans Morvan Hawaiian Islands Laurentian Mountains Galápagos Islands Isles of Scilly Inner Hebrides Sulitelma Caroline Islands Babuyan Islands Petite Terre Islands Canso Islands Lubusz Land Fjäderholmarna Ténéré Magdalen Islands Diablerets Society Islands Loyalty Islands Hochelaga Archipelago Surin Islands Palmer Archipelago
104
action count
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type concept
action count
action filter_type
action find
entity Magdalen Islands
relation located on terrain feature
type landscape
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?j ) WHERE { { SELECT DISTINCT ?i ( COUNT ( ?x ) AS ?c ) WHERE { ?x property:located_on_terrain_feature ?i . ?i rdf:type ontology:landscape . ?x rdf:type ontology:concept } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?d ) WHERE { resource:Magdalen_Islands property:located_on_terrain_feature ?m . ?m rdf:type ontology:landscape } } . FILTER ( ?c = ?d ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q118350
P706
Q107425 Q151885
USER
And what about Caroline Islands?
(c(Q151885),P706,c(Q107425))
action count
action approx
action find_reverse_tuple_counts
relation P706
type Q107425
type Q151885
action count
action filter_type
action find
entity Q118350
relation P706
type Q107425
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P706 ?s . ?s rdf:type ontology:Q107425 . ?n rdf:type ontology:Q151885 } GROUP BY ?s } . FILTER ( ?a = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q118350 property:P706 ?v . ?v rdf:type ontology:Q107425 } } }
Caroline Islands
action count
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type concept
action count
action filter_type
action find
entity Caroline Islands
relation located on terrain feature
type landscape
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:located_on_terrain_feature ?s . ?s rdf:type ontology:landscape . ?n rdf:type ontology:concept } GROUP BY ?s } . FILTER ( ?a = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Caroline_Islands property:located_on_terrain_feature ?v . ?v rdf:type ontology:landscape } } }
[]
landscape concept
SYSTEM
104
Q537749 Q5238909 Q3593572 Q201698 Q184355 Q218907 Q205711 Q171132 Q3628422 Q6549341 Q1133595 Q122641 Q46623 Q7361436 Q26399 Q1371403 Q83788 Q3437341 Q181528 Q3182351 Q15622837 Q8534941 Q5053601 Q3298193 Q47141 Q846021 Q189429 Q1670250 Q7296 Q3803 Q152704 Q2618638 Q1124865 Q140298 Q170383 Q3297553 Q303431 Q1142129 Q271674 Q671343 Q925906 Q152928 Q6583 Q17140346 Q162843 Q93259 Q116693 Q2860207 Q1384782 Q1283 Q855658 Q775944 Q46772 Q119206 Q472207 Q202816 Q924257 Q10688475 Q5312305 Q3237 Q7592509 Q211436 Q12707 Q172691 Q6379939 Q5467845 Q5951207 Q924897 Q645941 Q140948 Q634740 Q829084 Q291004 Q212520 Q620481 Q1127200 Q19730761 Q2135927 Q1919137 Q205695 Q2280216 Q207383 Q128172 Q586512 Q192626 Q75596 Q38095 Q180209 Q81052 Q2364593 Q118350 Q797807 Q292647 Q23011164 Q653732 Q753719 Q272521 Q1348763 Q15139 Q118920 Q913470 Q1252239 Q25046183 Q304679
(c(Q151885),P706,c(Q107425))
action count
action approx
action find_reverse_tuple_counts
relation P706
type Q107425
type Q151885
action count
action filter_type
action find
entity Q118350
relation P706
type Q107425
[ANSWER]
[{'concept': 'Q151885'}, 'P706', {'concept': 'Q107425'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:P706 ?s . ?s rdf:type ontology:Q107425 . ?n rdf:type ontology:Q151885 } GROUP BY ?s } . FILTER ( ?a = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Q118350 property:P706 ?v . ?v rdf:type ontology:Q107425 } } }
Florida Keys Svenska Högarna Apostle Islands Crozet Islands Mojave Desert Sharon Plain Solovetsky Islands Cyclades Madeira Islands Limestone Massif Meridiani Planum Lechquellen Mountains Prince Edward Islands Rolwaling Himal Hoggar Mountains Similan Islands Cordillera Central Roc de Chère National Nature Reserve Libyan Desert Plain of the Cul-de-Sac Guaniguanico Cerro de la Neblina Cato Reef Borg Massif Atacama Desert Southern Coral Group Sonoran Desert Jenolan Caves Mount Kilimanjaro Lesser Sunda Islands Gailtal Alps Upland Minsk Kantō Plain Windward Islands Aïr Mountains Amargosa Desert Ufenau Pearl Islands Phoenix Islands Mont Blanc massif Colorado Plateau Carnic Prealps Sahara Ko Yao archipelago Negev Lesser Antilles Esjan Queen Adelaide Archipelago Tanezrouft Dolomites Chihuahuan Desert Bărăgan Plain Kerguelen Islands Julian Alps Amirante Islands Stora Alvaret Mahalangur Himal Söderarm archipelago Dufek Massif Rügen St Anthony Head Visayas Great Plains Thar Desert Kawdy Plateau Ford Massif Huvudskär Seychelles Inner Islands Argentine Islands South Shetland Islands Comoros Islands Vegaøyan Highlands of Iceland Lower Rhine Plain Alphonse Group Louisiade Archipelago Phraya Nakhon Cave Red Centre Melchior Islands Mascarene Islands Gran Paradiso massif South Orkney Islands Île d'Orléans Morvan Hawaiian Islands Laurentian Mountains Galápagos Islands Isles of Scilly Inner Hebrides Sulitelma Caroline Islands Babuyan Islands Petite Terre Islands Canso Islands Lubusz Land Fjäderholmarna Ténéré Magdalen Islands Diablerets Society Islands Loyalty Islands Hochelaga Archipelago Surin Islands Palmer Archipelago
104
action count
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type landscape
type concept
action count
action filter_type
action find
entity Caroline Islands
relation located on terrain feature
type landscape
[{'concept': 'concept'}, 'located on terrain feature', {'concept': 'landscape'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?n ) AS ?a ) WHERE { ?n property:located_on_terrain_feature ?s . ?s rdf:type ontology:landscape . ?n rdf:type ontology:concept } GROUP BY ?s } . FILTER ( ?a = ?d ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?d ) WHERE { resource:Caroline_Islands property:located_on_terrain_feature ?v . ?v rdf:type ontology:landscape } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P636
Q151885 Q79529 Q12136
USER
Which concepts are the routes of administration of min number of chemical substances or diseases ?
(c(Q79529)|c(Q12136),P636,c(Q151885))
action argmin
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
[[{'concept': 'Q79529'}, {'concept': 'Q12136'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?c WHERE { { ?w property:P636 ?c . ?w rdf:type ontology:Q79529 . ?c rdf:type ontology:Q151885 } UNION { ?c rdf:type ontology:Q151885 . ?w rdf:type ontology:Q12136 . ?w property:P636 ?c } } GROUP BY ?c } . FILTER ( ?s = ?b ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?t WHERE { VALUES ( ?r ) { ( ontology:Q12136 ) ( ontology:Q79529 ) } . ?v rdf:type ?r } GROUP BY ?t } } }
action argmin
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 disease
[[{'concept': 'chemical substance'}, {'concept': 'disease'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?c WHERE { { ?w property:route_of_administration ?c . ?w rdf:type ontology:chemical_substance . ?c rdf:type ontology:concept } UNION { ?c rdf:type ontology:concept . ?w rdf:type ontology:disease . ?w property:route_of_administration ?c } } GROUP BY ?c } . FILTER ( ?s = ?b ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?t WHERE { VALUES ( ?r ) { ( ontology:disease ) ( ontology:chemical_substance ) } . ?v rdf:type ?r } GROUP BY ?t } } }
[]
concept chemical substance disease
Q1400536 Q1344580 Q366155
SYSTEM
intraperitoneal injection, enteral, intracardiac injection
Q1400536 Q1344580 Q366155 Q180609 Q419892 Q245359 Q7833952 Q3153701 Q1369403 Q1320251 Q16861468
(c(Q79529)|c(Q12136),P636,c(Q151885))
action argmin
action union
action find_reverse_tuple_counts
relation P636
type Q151885
type Q79529
action find_reverse_tuple_counts
relation P636
type Q151885
type Q12136
[ANSWERS] are the routes of administration of min number of chemical substances or diseases
[[{'concept': 'Q79529'}, {'concept': 'Q12136'}], 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?c WHERE { { ?w property:P636 ?c . ?w rdf:type ontology:Q79529 . ?c rdf:type ontology:Q151885 } UNION { ?c rdf:type ontology:Q151885 . ?w rdf:type ontology:Q12136 . ?w property:P636 ?c } } GROUP BY ?c } . FILTER ( ?s = ?b ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?t WHERE { VALUES ( ?r ) { ( ontology:Q12136 ) ( ontology:Q79529 ) } . ?v rdf:type ?r } GROUP BY ?t } } }
intraperitoneal injection enteral intracardiac injection intravitreal administration rectal injection transdermal insufflation intravenous injection Intrathecal intra-arterial infusion
Intraperitoneal injection, enteral and intracardiac injection are the routes of administration of min number of chemical substances or diseases
intraperitoneal injection enteral intracardiac injection
action argmin
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 disease
[[{'concept': 'chemical substance'}, {'concept': 'disease'}], 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?c WHERE { { ?w property:route_of_administration ?c . ?w rdf:type ontology:chemical_substance . ?c rdf:type ontology:concept } UNION { ?c rdf:type ontology:concept . ?w rdf:type ontology:disease . ?w property:route_of_administration ?c } } GROUP BY ?c } . FILTER ( ?s = ?b ) . { SELECT DISTINCT ( MIN ( ?e ) AS ?b ) { SELECT DISTINCT ( COUNT ( ?v ) AS ?e ) ?t WHERE { VALUES ( ?r ) { ( ontology:disease ) ( ontology:chemical_substance ) } . ?v rdf:type ?r } GROUP BY ?t } } }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P636
Q151885 Q12136
USER
How many concepts represents the administration route of approximately the same number of diseases as that concept ?
(c(Q12136),P636,c(Q151885))
[{'concept': 'Q12136'}, 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q621636 ?y . ?z rdf:type ontology:Q12136 . ?y rdf:type ontology:Q151885 }
[{'concept': 'disease'}, 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:route_of_administration ?y . ?z rdf:type ontology:disease . ?y rdf:type ontology:concept }
[]
concept disease
Comparative|Count over More/Less|Single entity type|Clarification
Q366155
SYSTEM
Did you mean intracardiac injection ?
(c(Q12136),P636,c(Q151885))
[ANSWER]
[{'concept': 'Q12136'}, 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q621636 ?y . ?z rdf:type ontology:Q12136 . ?y rdf:type ontology:Q151885 }
Did you mean intracardiac injection ?
intracardiac injection
[{'concept': 'disease'}, 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:route_of_administration ?y . ?z rdf:type ontology:disease . ?y rdf:type ontology:concept }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q12136),P636,c(Q151885))
[{'concept': 'Q12136'}, 'P636', {'concept': 'Q151885'}]
[{'concept': 'disease'}, 'route of administration', {'concept': 'concept'}]
[]
SYSTEM
17
Q1400536 Q1344580 Q366155 Q6058566 Q180609 Q419892 Q245359 Q420054 Q640448 Q7833952 Q3153701 Q1369403 Q285166 Q16920397 Q1320251 Q16861468 Q784720
(c(Q12136),P636,c(Q151885))
[ANSWER]
[{'concept': 'Q12136'}, 'P636', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:Q621636 ?y . ?z rdf:type ontology:Q12136 . ?y rdf:type ontology:Q151885 }
intraperitoneal injection enteral intracardiac injection intravaginal administration intravitreal administration rectal injection topical medication intravenous infusion transdermal insufflation intravenous injection oral administration conjunctival Intrathecal intra-arterial infusion sublingual administration
17
[{'concept': 'disease'}, 'route of administration', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:route_of_administration ?y . ?z rdf:type ontology:disease . ?y rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q452100
P159
Q56061
USER
Where is the head office for Fehlfarben located ?
(Q452100,P159,c(Q56061))
action filter_type
action find
entity Q452100
relation P159
type Q56061
['Q452100', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q452100 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Fehlfarben
action filter_type
action find
entity Fehlfarben
relation headquarters location
type administrative territorial entity
['Fehlfarben', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Fehlfarben property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1718
SYSTEM
Düsseldorf
Q1718
(Q452100,P159,c(Q56061))
action filter_type
action find
entity Q452100
relation P159
type Q56061
The head office for Fehlfarben is located in [ANSWER]
['Q452100', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q452100 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Düsseldorf
The head office for Fehlfarben is located in Düsseldorf
Düsseldorf
action filter_type
action find
entity Fehlfarben
relation headquarters location
type administrative territorial entity
['Fehlfarben', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Fehlfarben property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4022558
Q355304
USER
And how about yarlongite?
(Q4022558,P138,c(Q355304))
action filter_type
action find
entity Q4022558
relation P138
type Q355304
['Q4022558', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?p WHERE { resource:Q4022558 property:P138 ?p . ?p rdf:type ontology:Q355304 }
yarlongite
action filter_type
action find
entity yarlongite
relation named after
type watercourse
['yarlongite', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?p WHERE { resource:yarlongite property:named_after ?p . ?p rdf:type ontology:watercourse }
[]
watercourse
Q3244259
SYSTEM
Yarlung Tsangpo River
Q3244259
(Q4022558,P138,c(Q355304))
action filter_type
action find
entity Q4022558
relation P138
type Q355304
[ANSWER]
['Q4022558', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?p WHERE { resource:Q4022558 property:P138 ?p . ?p rdf:type ontology:Q355304 }
Yarlung Tsangpo River
Yarlung Tsangpo River
action filter_type
action find
entity yarlongite
relation named after
type watercourse
['yarlongite', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?p WHERE { resource:yarlongite property:named_after ?p . ?p rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3244259
P403
Q355304
USER
Where does that one flow into ?
(Q3244259,P403,c(Q355304))
action filter_type
action find
entity Q3244259
relation P403
type Q355304
['Q3244259', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ?i WHERE { resource:Q3244259 property:P403 ?i . ?i rdf:type ontology:Q355304 }
Yarlung Tsangpo River
action filter_type
action find
entity Yarlung Tsangpo River
relation mouth of the watercourse
type watercourse
['Yarlung Tsangpo River', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ?i WHERE { resource:Yarlung_Tsangpo_River property:mouth_of_the_watercourse ?i . ?i rdf:type ontology:watercourse }
[]
watercourse
Q5089
SYSTEM
Ganges
Q5089
(Q3244259,P403,c(Q355304))
action filter_type
action find
entity Q3244259
relation P403
type Q355304
That one flows into the [ANSWER]
['Q3244259', 'P403', {'concept': 'Q355304'}]
SELECT DISTINCT ?i WHERE { resource:Q3244259 property:P403 ?i . ?i rdf:type ontology:Q355304 }
Ganges
That one flows into the Ganges
Ganges
action filter_type
action find
entity Yarlung Tsangpo River
relation mouth of the watercourse
type watercourse
['Yarlung Tsangpo River', 'mouth of the watercourse', {'concept': 'watercourse'}]
SELECT DISTINCT ?i WHERE { resource:Yarlung_Tsangpo_River property:mouth_of_the_watercourse ?i . ?i rdf:type ontology:watercourse }
[]