Simple Question (Direct)
Simple Question
Q27827765
P161
Q502895
USER
Which people are in Northern Border ?
(Q27827765,P161,c(Q502895))
action filter_type
action find
entity Q27827765
relation P161
type Q502895
['Q27827765', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q27827765 property:P161 ?j }
Northern Border
action filter_type
action find
entity Northern Border
relation cast member
type common name
['Northern Border', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Northern_Border property:cast_member ?j }
[]
common name
Q5707352 Q3067901 Q6123741
SYSTEM
Arturo Martínez, Federico Curiel, Jaime Fernández
Q5444704 Q6704678 Q5852609 Q2881737 Q23582946 Q5707352 Q3067901 Q5879619 Q6165685 Q6123741 Q24203459
(Q27827765,P161,c(Q502895))
action filter_type
action find
entity Q27827765
relation P161
type Q502895
[ANSWERS] are in Northern Border
['Q27827765', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q27827765 property:P161 ?j }
Fernando Fernández Lupe Carriles Evangelina Elizondo Gloria Mestre Antonio Bravo Arturo Martínez Federico Curiel Gilberto González Víctor Parra Jaime Fernández Manuel Dondé
Arturo Martínez, Federico Curiel and Jaime Fernández are in Northern Border
Arturo Martínez Federico Curiel Jaime Fernández
action filter_type
action find
entity Northern Border
relation cast member
type common name
['Northern Border', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Northern_Border property:cast_member ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6123741
P27
Q15617994
USER
Which administrative territory is Jaime Fernández a civilian of ?
(Q6123741,P27,c(Q15617994))
action filter_type
action find
entity Q6123741
relation P27
type Q15617994
['Q6123741', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q6123741 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Jaime Fernández
action filter_type
action find
entity Jaime Fernández
relation country of citizenship
type designation for an administrative territorial entity
['Jaime Fernández', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jaime_Fernández property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96
SYSTEM
Mexico
Q96
(Q6123741,P27,c(Q15617994))
action filter_type
action find
entity Q6123741
relation P27
type Q15617994
[ANSWER] is Jaime Fernández a civilian of
['Q6123741', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q6123741 property:P27 ?p . ?p rdf:type ontology:Q15617994 }
Mexico
Mexico is Jaime Fernández a civilian of
Mexico
action filter_type
action find
entity Jaime Fernández
relation country of citizenship
type designation for an administrative territorial entity
['Jaime Fernández', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Jaime_Fernández property:country_of_citizenship ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6123741
P509
Q2057971
USER
What was the cause of death of that person ?
(Q96,P509,c(Q2057971))
action filter_type
action find
entity Q6123741
relation P509
type Q2057971
['Q96', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2057971 . resource:Q6123741 property:P509 ?j }
Jaime Fernández
action filter_type
action find
entity Jaime Fernández
relation cause of death
type health problem
['Mexico', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:health_problem . resource:Jaime_Fernández property:cause_of_death ?j }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
(Q96,P509,c(Q2057971))
action filter_type
action find
entity Q6123741
relation P509
type Q2057971
The cause of death of that person was a [ANSWER]
['Q96', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q2057971 . resource:Q6123741 property:P509 ?j }
myocardial infarction
The cause of death of that person was a myocardial infarction
myocardial infarction
action filter_type
action find
entity Jaime Fernández
relation cause of death
type health problem
['Mexico', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:health_problem . resource:Jaime_Fernández property:cause_of_death ?j }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P1542
Q2057971 Q2996394 Q8386
USER
How many health problems are caused by more number of biological processes or drugs than that health problem ?
(c(Q2996394)|c(Q8386),P1542,c(Q2057971))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2996394
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
action count
action filter_multi_types
action find_reverse
entity Q12152
relation P1542
type Q2996394
type Q8386
[[{'concept': 'Q2996394'}, {'concept': 'Q8386'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?d WHERE { { ?d rdf:type ontology:Q2057971 . ?k rdf:type ontology:Q2996394 . ?k property:P1542 ?d } UNION { ?k property:P1542 ?d . ?k rdf:type ontology:Q8386 . ?d rdf:type ontology:Q2057971 } } GROUP BY ?d } . FILTER ( ?b > ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P1542 resource:Q12152 . { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2996394 ) ( ontology:Q8386 ) } } } } }
action count
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type biological process
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
action count
action filter_multi_types
action find_reverse
entity myocardial infarction
relation cause of
type biological process
type drug
[[{'concept': 'biological process'}, {'concept': 'drug'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?d WHERE { { ?d rdf:type ontology:health_problem . ?k rdf:type ontology:biological_process . ?k property:cause_of ?d } UNION { ?k property:cause_of ?d . ?k rdf:type ontology:drug . ?d rdf:type ontology:health_problem } } GROUP BY ?d } . FILTER ( ?b > ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:cause_of resource:myocardial_infarction . { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:biological_process ) ( ontology:drug ) } } } } }
[]
health problem biological process drug
SYSTEM
6
Q5062120 Q190564 Q200779 Q18553742 Q178194 Q506616
(c(Q2996394)|c(Q8386),P1542,c(Q2057971))
action count
action greater
action union
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q2996394
action find_reverse_tuple_counts
relation P1542
type Q2057971
type Q8386
action count
action filter_multi_types
action find_reverse
entity Q12152
relation P1542
type Q2996394
type Q8386
[ANSWER]
[[{'concept': 'Q2996394'}, {'concept': 'Q8386'}], 'P1542', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?d WHERE { { ?d rdf:type ontology:Q2057971 . ?k rdf:type ontology:Q2996394 . ?k property:P1542 ?d } UNION { ?k property:P1542 ?d . ?k rdf:type ontology:Q8386 . ?d rdf:type ontology:Q2057971 } } GROUP BY ?d } . FILTER ( ?b > ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:P1542 resource:Q12152 . { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2996394 ) ( ontology:Q8386 ) } } } } }
central nervous system depression Huntington's disease genetic disease chromosomal disease cystic fibrosis drowning
6
action count
action greater
action union
action find_reverse_tuple_counts
relation cause of
type health problem
type biological process
action find_reverse_tuple_counts
relation cause of
type health problem
type drug
action count
action filter_multi_types
action find_reverse
entity myocardial infarction
relation cause of
type biological process
type drug
[[{'concept': 'biological process'}, {'concept': 'drug'}], 'cause of', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?p ) WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?d WHERE { { ?d rdf:type ontology:health_problem . ?k rdf:type ontology:biological_process . ?k property:cause_of ?d } UNION { ?k property:cause_of ?d . ?k rdf:type ontology:drug . ?d rdf:type ontology:health_problem } } GROUP BY ?d } . FILTER ( ?b > ?h ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { ?j property:cause_of resource:myocardial_infarction . { ?j rdf:type ?c . VALUES ( ?c ) { ( ontology:biological_process ) ( ontology:drug ) } } } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6123741
P106
Q28640
USER
Which profession has Jaime Fernández as his/her 's career ?
(Q6123741,P106,c(Q28640))
action filter_type
action find
entity Q6123741
relation P106
type Q28640
['Q6123741', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?b WHERE { resource:Q6123741 property:P106 ?b . ?b rdf:type ontology:Q28640 }
Jaime Fernández
action filter_type
action find
entity Jaime Fernández
relation occupation
type profession
['Jaime Fernández', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?b WHERE { resource:Jaime_Fernández property:occupation ?b . ?b rdf:type ontology:profession }
[]
profession
Q10800557
SYSTEM
film actor
Q10800557
(Q6123741,P106,c(Q28640))
action filter_type
action find
entity Q6123741
relation P106
type Q28640
The [ANSWER] has Jaime Fernández as his/her 's career
['Q6123741', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?b WHERE { resource:Q6123741 property:P106 ?b . ?b rdf:type ontology:Q28640 }
film actor
The film actor has Jaime Fernández as his/her 's career
film actor
action filter_type
action find
entity Jaime Fernández
relation occupation
type profession
['Jaime Fernández', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?b WHERE { resource:Jaime_Fernández property:occupation ?b . ?b rdf:type ontology:profession }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6123741
P1412
Q34770
USER
Which language is spoken by Jaime Fernández ?
(Q6123741,P1412,c(Q34770))
action filter_type
action find
entity Q6123741
relation P1412
type Q34770
['Q6123741', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q6123741 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
Jaime Fernández
action filter_type
action find
entity Jaime Fernández
relation languages spoken, written or signed
type language
['Jaime Fernández', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Jaime_Fernández property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q6123741,P1412,c(Q34770))
action filter_type
action find
entity Q6123741
relation P1412
type Q34770
And [ANSWER] is spoken by Jaime Fernández
['Q6123741', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { resource:Q6123741 property:P1412 ?u . ?u rdf:type ontology:Q34770 }
Spanish
And Spanish is spoken by Jaime Fernández
Spanish
action filter_type
action find
entity Jaime Fernández
relation languages spoken, written or signed
type language
['Jaime Fernández', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { resource:Jaime_Fernández property:languages_spoken,_written_or_signed ?u . ?u rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q6227575
Q34770
USER
And also tell me about John Creemer Clarke?
(Q6227575,P1412,c(Q34770))
action filter_type
action find
entity Q6227575
relation P1412
type Q34770
['Q6227575', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q34770 . resource:Q6227575 property:P1412 ?v }
John Creemer Clarke
action filter_type
action find
entity John Creemer Clarke
relation languages spoken, written or signed
type language
['John Creemer Clarke', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:language . resource:John_Creemer_Clarke property:languages_spoken,_written_or_signed ?v }
[]
language
Q1860
SYSTEM
English
Q1860
(Q6227575,P1412,c(Q34770))
action filter_type
action find
entity Q6227575
relation P1412
type Q34770
[ANSWER]
['Q6227575', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q34770 . resource:Q6227575 property:P1412 ?v }
English
English
action filter_type
action find
entity John Creemer Clarke
relation languages spoken, written or signed
type language
['John Creemer Clarke', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:language . resource:John_Creemer_Clarke property:languages_spoken,_written_or_signed ?v }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q23541302
P37
Q34770 Q7275
USER
How many states are approximately the same number of languages associated to as the official language as Kaluga Soviet Republic ?
(c(Q7275),P37,c(Q34770))
action count
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q23541302
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?t ) WHERE { ?e rdf:type ontology:Q7275 . ?z rdf:type ontology:Q34770 . ?e property:P37 ?z } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ontology:Q7275 . resource:Q23541302 property:P37 ?r } } . FILTER ( ?t = ?q ) }
Kaluga Soviet Republic
action count
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Kaluga Soviet Republic
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?t ) WHERE { ?e rdf:type ontology:state . ?z rdf:type ontology:language . ?e property:official_language ?z } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ontology:state . resource:Kaluga_Soviet_Republic property:official_language ?r } } . FILTER ( ?t = ?q ) }
[]
language state
SYSTEM
47
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action count
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q23541302
relation P37
type Q7275
[ANSWER]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?t ) WHERE { ?e rdf:type ontology:Q7275 . ?z rdf:type ontology:Q34770 . ?e property:P37 ?z } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ontology:Q7275 . resource:Q23541302 property:P37 ?r } } . FILTER ( ?t = ?q ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
47
action count
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Kaluga Soviet Republic
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?z ) AS ?t ) WHERE { ?e rdf:type ontology:state . ?z rdf:type ontology:language . ?e property:official_language ?z } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { ?r rdf:type ontology:state . resource:Kaluga_Soviet_Republic property:official_language ?r } } . FILTER ( ?t = ?q ) }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q15708868
Q34770
USER
And how about The American Journal of Pharmaceutical Education?
(Q15708868,P37,c(Q34770))
action count
action filter_type
action find
entity Q15708868
relation P37
type Q34770
['Q15708868', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Q15708868 property:P37 ?c . ?c rdf:type ontology:Q34770 }
The American Journal of Pharmaceutical Education
action count
action filter_type
action find
entity The American Journal of Pharmaceutical Education
relation official language
type language
['The American Journal of Pharmaceutical Education', 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:The_American_Journal_of_Pharmaceutical_Education property:official_language ?c . ?c rdf:type ontology:language }
[]
language
SYSTEM
1
(Q15708868,P37,c(Q34770))
action count
action filter_type
action find
entity Q15708868
relation P37
type Q34770
[ANSWER]
['Q15708868', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:Q15708868 property:P37 ?c . ?c rdf:type ontology:Q34770 }
1
action count
action filter_type
action find
entity The American Journal of Pharmaceutical Education
relation official language
type language
['The American Journal of Pharmaceutical Education', 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { resource:The_American_Journal_of_Pharmaceutical_Education property:official_language ?c . ?c rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15708868
P123
Q43229
USER
Who released that magazine genre ?
action filter_type
action find
entity Q15708868
relation P123
type Q43229
SELECT DISTINCT ?r WHERE { resource:Q15708868 property:P123 ?r . ?r rdf:type ontology:Q43229 }
The American Journal of Pharmaceutical Education
action filter_type
action find
entity The American Journal of Pharmaceutical Education
relation publisher
type organization
SELECT DISTINCT ?r WHERE { resource:The_American_Journal_of_Pharmaceutical_Education property:publisher ?r . ?r rdf:type ontology:organization }
[]
organization
Q4743056
SYSTEM
American Association of Colleges of Pharmacy
Q4743056
action filter_type
action find
entity Q15708868
relation P123
type Q43229
[ANSWER] released that magazine genre
SELECT DISTINCT ?r WHERE { resource:Q15708868 property:P123 ?r . ?r rdf:type ontology:Q43229 }
American Association of Colleges of Pharmacy
American Association of Colleges of Pharmacy released that magazine genre
American Association of Colleges of Pharmacy
action filter_type
action find
entity The American Journal of Pharmaceutical Education
relation publisher
type organization
SELECT DISTINCT ?r WHERE { resource:The_American_Journal_of_Pharmaceutical_Education property:publisher ?r . ?r rdf:type ontology:organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q15708868
P101
Q1047113
USER
What are the fields of work of that magazine genre ?
(Q4743056,P101,c(Q1047113))
action filter_type
action find
entity Q15708868
relation P101
type Q1047113
['Q4743056', 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?v WHERE { resource:Q15708868 property:P101 ?v . ?v rdf:type ontology:Q1047113 }
The American Journal of Pharmaceutical Education
action filter_type
action find
entity The American Journal of Pharmaceutical Education
relation field of work
type special field
['American Association of Colleges of Pharmacy', 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?v WHERE { resource:The_American_Journal_of_Pharmaceutical_Education property:field_of_work ?v . ?v rdf:type ontology:special_field }
[]
special field
Q128406 Q614304
SYSTEM
pharmacology, pharmacy
Q128406 Q614304
(Q4743056,P101,c(Q1047113))
action filter_type
action find
entity Q15708868
relation P101
type Q1047113
The fields of work of that magazine genre are [ANSWERS]
['Q4743056', 'P101', {'concept': 'Q1047113'}]
SELECT DISTINCT ?v WHERE { resource:Q15708868 property:P101 ?v . ?v rdf:type ontology:Q1047113 }
pharmacology pharmacy
The fields of work of that magazine genre are pharmacology and pharmacy
pharmacology pharmacy
action filter_type
action find
entity The American Journal of Pharmaceutical Education
relation field of work
type special field
['American Association of Colleges of Pharmacy', 'field of work', {'concept': 'special field'}]
SELECT DISTINCT ?v WHERE { resource:The_American_Journal_of_Pharmaceutical_Education property:field_of_work ?v . ?v rdf:type ontology:special_field }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P495
Q15617994 Q7725634 Q2031291
USER
Which administrative territories are the countries of origin of max number of literary works and releases ?
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?c ) WHERE { { ?a rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q2031291 . ?q property:P495 ?a } UNION { ?q property:P495 ?a . ?q rdf:type ontology:Q7725634 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7725634 ) ( ontology:Q2031291 ) } } GROUP BY ?e } . FILTER ( ?z = ?u ) }
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?c ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:release . ?q property:country_of_origin ?a } UNION { ?q property:country_of_origin ?a . ?q rdf:type ontology:literary_work . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ?t . VALUES ( ?t ) { ( ontology:literary_work ) ( ontology:release ) } } GROUP BY ?e } . FILTER ( ?z = ?u ) }
[]
designation for an administrative territorial entity literary work release
Q30
SYSTEM
United States of America
Q30
(c(Q7725634)|c(Q2031291),P495,c(Q15617994))
action argmax
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2031291
[ANSWER] is the countries of origin of max number of literary works and releases
[[{'concept': 'Q7725634'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?c ) WHERE { { ?a rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q2031291 . ?q property:P495 ?a } UNION { ?q property:P495 ?a . ?q rdf:type ontology:Q7725634 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ?t . VALUES ( ?t ) { ( ontology:Q7725634 ) ( ontology:Q2031291 ) } } GROUP BY ?e } . FILTER ( ?z = ?u ) }
United States of America
United States of America is the countries of origin of max number of literary works and releases
United States of America
action argmax
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type release
[[{'concept': 'literary work'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?c ) AS ?u ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?c ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:release . ?q property:country_of_origin ?a } UNION { ?q property:country_of_origin ?a . ?q rdf:type ontology:literary_work . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } } . { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?z ) WHERE { ?j rdf:type ?t . VALUES ( ?t ) { ( ontology:literary_work ) ( ontology:release ) } } GROUP BY ?e } . FILTER ( ?z = ?u ) }
[]