Simple Question (Direct)
Simple Question
Q133750
P734
Q82799
USER
Who has the surname Bai Yansong ?
(Q133750,P734,c(Q82799))
action filter_type
action find
entity Q133750
relation P734
type Q82799
['Q133750', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q133750 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Bai Yansong
action filter_type
action find
entity Bai Yansong
relation family name
type name
['Bai Yansong', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Bai_Yansong property:family_name ?t . ?t rdf:type ontology:name }
[]
name
Q15711104
SYSTEM
Bai
Q15711104
(Q133750,P734,c(Q82799))
action filter_type
action find
entity Q133750
relation P734
type Q82799
[ANSWER] has the surname [ANSWER] Yansong
['Q133750', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q133750 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Bai
Bai has the surname Bai Yansong
Bai
action filter_type
action find
entity Bai Yansong
relation family name
type name
['Bai Yansong', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Bai_Yansong property:family_name ?t . ?t rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q133750
P172
Q2472587
USER
Which people does Bai Yansong have as ethnic origin ?
(Q133750,P172,c(Q2472587))
action filter_type
action find
entity Q133750
relation P172
type Q2472587
['Q133750', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q133750 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
Bai Yansong
action filter_type
action find
entity Bai Yansong
relation ethnic group
type people
['Bai Yansong', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Bai_Yansong property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
people
Q1187403
SYSTEM
Mongols in China
Q1187403
(Q133750,P172,c(Q2472587))
action filter_type
action find
entity Q133750
relation P172
type Q2472587
Bai Yansong has claimed [ANSWER] as ethnic origin
['Q133750', 'P172', {'concept': 'Q2472587'}]
SELECT DISTINCT ?a WHERE { resource:Q133750 property:P172 ?a . ?a rdf:type ontology:Q2472587 }
Mongols in China
Bai Yansong has claimed Mongols in China as ethnic origin
Mongols in China
action filter_type
action find
entity Bai Yansong
relation ethnic group
type people
['Bai Yansong', 'ethnic group', {'concept': 'people'}]
SELECT DISTINCT ?a WHERE { resource:Bai_Yansong property:ethnic_group ?a . ?a rdf:type ontology:people }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1187403 Q5498411
P172
Q502895
USER
Does Gerard Mulder have that people as ethnic group ?
(Q5498411,P172,Q1187403)
action is_in
entity Q5498411
action find
entity Q1187403
relation P172
['Q5498411', 'P172', 'Q1187403']
ASK WHERE { resource:Q1187403 property:P172 resource:Q5498411 }
Mongols in China Gerard Mulder
action is_in
entity Gerard Mulder
action find
entity Mongols in China
relation ethnic group
['Gerard Mulder', 'ethnic group', 'Mongols in China']
ASK WHERE { resource:Mongols_in_China property:ethnic_group resource:Gerard_Mulder }
[]
common name
SYSTEM
NO
(Q5498411,P172,Q1187403)
action is_in
entity Q5498411
action find
entity Q1187403
relation P172
[ANSWER]
['Q5498411', 'P172', 'Q1187403']
ASK WHERE { resource:Q1187403 property:P172 resource:Q5498411 }
No
action is_in
entity Gerard Mulder
action find
entity Mongols in China
relation ethnic group
['Gerard Mulder', 'ethnic group', 'Mongols in China']
ASK WHERE { resource:Mongols_in_China property:ethnic_group resource:Gerard_Mulder }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21855549 Q133750
P27
Q15617994
USER
Which administrative territories are the native countriesof Bai Yansong or Jean-Pierre Abossolo-Ze ?
OR((Q133750,P27,c(Q15617994)), (Q21855549,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q133750
relation P27
action find
entity Q21855549
relation P27
type Q15617994
{'OR': [['Q133750', 'P27', {'concept': 'Q15617994'}], ['Q21855549', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q133750 property:P27 ?h } UNION { resource:Q21855549 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
Jean-Pierre Abossolo-Ze Bai Yansong
action filter_type
action union
action find
entity Bai Yansong
relation country of citizenship
action find
entity Jean-Pierre Abossolo-Ze
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Bai Yansong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jean-Pierre Abossolo-Ze', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Bai_Yansong property:country_of_citizenship ?h } UNION { resource:Jean-Pierre_Abossolo-Ze property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q148 Q1009
SYSTEM
People's Republic of China, Cameroon
Q148 Q1009
OR((Q133750,P27,c(Q15617994)), (Q21855549,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q133750
relation P27
action find
entity Q21855549
relation P27
type Q15617994
[ANSWERS] are the native countriesof Bai Yansong or Jean-Pierre Abossolo-Ze
{'OR': [['Q133750', 'P27', {'concept': 'Q15617994'}], ['Q21855549', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q133750 property:P27 ?h } UNION { resource:Q21855549 property:P27 ?h } } . ?h rdf:type ontology:Q15617994 }
People's Republic of China Cameroon
People's Republic of China and Cameroon are the native countriesof Bai Yansong or Jean-Pierre Abossolo-Ze
People's Republic of China Cameroon
action filter_type
action union
action find
entity Bai Yansong
relation country of citizenship
action find
entity Jean-Pierre Abossolo-Ze
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Bai Yansong', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Jean-Pierre Abossolo-Ze', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Bai_Yansong property:country_of_citizenship ?h } UNION { resource:Jean-Pierre_Abossolo-Ze property:country_of_citizenship ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have tactful political relations with those administrative territories ?
(Q183,P530,Q148) (Q183,P530,Q1009)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q148'] ['Q183', 'P530', 'Q1009']
ASK WHERE { VALUES ( ?o ) { ( resource:Q148 ) ( resource:Q1009 ) } . resource:Q183 property:P530 ?o }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', "People's Republic of China"] ['Germany', 'diplomatic relation', 'Cameroon']
ASK WHERE { VALUES ( ?o ) { ( resource:People's_Republic_of_China ) ( resource:Cameroon ) } . resource:Germany property:diplomatic_relation ?o }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q148) (Q183,P530,Q1009)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q148'] ['Q183', 'P530', 'Q1009']
ASK WHERE { VALUES ( ?o ) { ( resource:Q148 ) ( resource:Q1009 ) } . resource:Q183 property:P530 ?o }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', "People's Republic of China"] ['Germany', 'diplomatic relation', 'Cameroon']
ASK WHERE { VALUES ( ?o ) { ( resource:People's_Republic_of_China ) ( resource:Cameroon ) } . resource:Germany property:diplomatic_relation ?o }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q1009 Q408 Q183
P530
Q1048835
USER
Does Cameroon have tactful political relations with Australia and Germany ?
(Q1009,P530,Q408) (Q1009,P530,Q183)
action is_in
entity Q1009
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q183
relation P530
['Q1009', 'P530', 'Q408'] ['Q1009', 'P530', 'Q183']
ASK WHERE { resource:Q1009 property:P530 resource:Q408 . resource:Q1009 property:P530 resource:Q183 }
Cameroon Australia Germany
action is_in
entity Cameroon
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Cameroon', 'diplomatic relation', 'Australia'] ['Cameroon', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Cameroon property:diplomatic_relation resource:Australia . resource:Cameroon property:diplomatic_relation resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1009,P530,Q408) (Q1009,P530,Q183)
action is_in
entity Q1009
action intersection
action find_reverse
entity Q408
relation P530
action find_reverse
entity Q183
relation P530
[ANSWER]
['Q1009', 'P530', 'Q408'] ['Q1009', 'P530', 'Q183']
ASK WHERE { resource:Q1009 property:P530 resource:Q408 . resource:Q1009 property:P530 resource:Q183 }
Yes
action is_in
entity Cameroon
action intersection
action find_reverse
entity Australia
relation diplomatic relation
action find_reverse
entity Germany
relation diplomatic relation
['Cameroon', 'diplomatic relation', 'Australia'] ['Cameroon', 'diplomatic relation', 'Germany']
ASK WHERE { resource:Cameroon property:diplomatic_relation resource:Australia . resource:Cameroon property:diplomatic_relation resource:Germany }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q151885 Q9332 Q82799
USER
Which names are a portion of atmost 1 concepts or behaviors ?
(c(Q82799),P361,c(Q151885)|c(Q9332))
action atmost
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?u ) WHERE { { ?n rdf:type ontology:Q82799 . ?q rdf:type ontology:Q9332 . ?n property:P361 ?q } UNION { ?n property:P361 ?q . ?n rdf:type ontology:Q82799 . ?q rdf:type ontology:Q151885 } } GROUP BY ?n } . FILTER ( ?u <= 1 ) }
action atmost
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?u ) WHERE { { ?n rdf:type ontology:name . ?q rdf:type ontology:behavior . ?n property:part_of ?q } UNION { ?n property:part_of ?q . ?n rdf:type ontology:name . ?q rdf:type ontology:concept } } GROUP BY ?n } . FILTER ( ?u <= 1 ) }
[]
concept behavior name
Q16279139 Q19810530 Q21057288
SYSTEM
Máté, Han, Hester
Q19984029 Q23539781 Q16101731 Q16515753 Q27355533 Q22001585 Q26000745 Q26822115 Q19986366 Q2168099 Q19963541 Q20731004 Q27651197 Q21491652 Q21501467 Q27037178 Q21484983 Q12783920 Q27037174 Q5791319 Q27651212 Q12594770 Q27356490 Q1946932 Q21144151 Q20731003 Q27357908 Q18001608 Q26775417 Q20155939 Q11283653 Q26971843 Q27465067 Q18645215 Q12788667 Q19831808 Q27357598 Q21475479 Q24477965 Q21488853 Q26156283 Q21487329 Q24477968 Q24090443 Q20675459 Q21279602 Q1058384 Q16563753 Q21450326 Q21510209 Q25114460 Q27436303 Q21431253 Q20985269 Q27037161 Q355505 Q7071783 Q27037165 Q15629245 Q21498452 Q27037169 Q235598 Q1513700 Q18515515 Q18808411 Q21492574 Q16882305 Q1240901 Q19688789 Q24251030 Q18844248 Q27678568 Q19311987 Q5646565 Q20089343 Q19672747 Q1093580 Q742083 Q19828992 Q21043141 Q22673958 Q4082729 Q18171095 Q110874 Q26448488 Q19832245 Q26822136 Q26822137 Q27635577 Q26822132 Q19688838 Q23636060 Q26822155 Q10145967 Q16161715 Q11878943 Q21506948 Q252216 Q2547055 Q21492983 Q21584287 Q272914 Q23039002 Q27037119 Q19944848 Q2553935 Q18645909 Q21512664 Q27204774 Q18808940 Q1173421 Q27476988 Q23822720 Q21450808 Q25114459 Q15238609 Q27230306 Q27538384 Q16390676 Q26772804 Q26822160 Q25695405 Q20900701 Q24091156 Q26986281 Q26235096 Q26944932 Q20875974 Q15897047 Q27450778 Q3281200 Q27229561 Q26944931 Q23640302 Q26266311 Q3372303 Q10587130 Q17165817 Q15926381 Q26736729 Q21450395 Q19687637 Q27357173 Q27356099 Q1247793 Q21470412 Q27355703 Q27185681 Q21506801 Q27203015 Q23590373 Q21534988 Q21405537 Q27355517 Q26235204 Q21069157 Q27229604 Q23907762 Q27450583 Q27229563 Q26266310 Q27450587 Q15835964 Q21471177 Q20083701 Q885595 Q27203027 Q12624980 Q1707301 Q26822099 Q2876425 Q27229572 Q24573284 Q27251921 Q5 Q631147 Q26868860 Q27651154 Q20003434 Q26736681 Q27352651 Q26877838 Q26986610 Q21502033 Q26449961 Q21452487 Q1158284 Q16876541 Q16932005 Q15788891 Q27642537 Q27450911 Q12788669 Q23590368 Q13639177 Q27037180 Q19944235 Q804437 Q21450555 Q27670177 Q4400681 Q23041619 Q1620641 Q21130107 Q808994 Q16279139 Q21447940 Q12600404 Q19998957 Q17505763 Q18552178 Q21484879 Q27356272 Q19768404 Q12036851 Q19810530 Q26822081 Q24090532 Q18228388 Q26906549 Q24090418 Q26742856 Q26986918 Q1703599 Q19961051 Q382004 Q12601635 Q5461714 Q27350540 Q12020943 Q1399288 Q12188082 Q20010325 Q26235099 Q23578592 Q2491016 Q1557998 Q27133109 Q19831835 Q21491435 Q23767331 Q23767330 Q21507872 Q27450606 Q21508944 Q2824680 Q27450608 Q26774382 Q19550817 Q18689509 Q27355496 Q19768398 Q27450724 Q15813147 Q15711050 Q12784475 Q26736416 Q21431135 Q26772911 Q21484692 Q26736415 Q27037157 Q27651236 Q26972674 Q18402175 Q21886149 Q12785732 Q19839042 Q27450686 Q26741038 Q23569212 Q21492540 Q21142292 Q27450728 Q27450834 Q27450836 Q23907739 Q1915243 Q2287331 Q23578587 Q22348139 Q21057288 Q21476618 Q263542 Q3701009 Q21484521 Q21484914 Q4835658 Q746990 Q4812724 Q21534898 Q26234451 Q19550800 Q23538357 Q1737707 Q26972634 Q16175496 Q19856970 Q21143968 Q21143966 Q20064977 Q21450552 Q19839041 Q27450738 Q27450739 Q876933 Q21538548 Q5034376 Q27131901 Q26741034 Q19582298 Q19688887 Q27450824 Q26220628 Q861966 Q13582244 Q15789615 Q20982280 Q27450829
(c(Q82799),P361,c(Q151885)|c(Q9332))
action atmost
action union
action find_tuple_counts
relation P361
type Q82799
type Q151885
action find_tuple_counts
relation P361
type Q82799
type Q9332
value 1
[ANSWERS] are a portion of atmost 1 concepts or behaviors
[{'concept': 'Q82799'}, 'P361', [{'concept': 'Q151885'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?u ) WHERE { { ?n rdf:type ontology:Q82799 . ?q rdf:type ontology:Q9332 . ?n property:P361 ?q } UNION { ?n property:P361 ?q . ?n rdf:type ontology:Q82799 . ?q rdf:type ontology:Q151885 } } GROUP BY ?n } . FILTER ( ?u <= 1 ) }
Minami Asami Carter Farkas Türkkan Lamont Meta Candan Brodie human Rotavirusses Cassie Crawford Littleton Esin Olivera Bainbridge Dwyer Abram Bridger Tajinaste Redmond Man Holly Moosa Fedde Crawford Ademola Sylvain Dalibor Clancy Czech family name Ado Özgen Agostino Fabjan Loren Siemion Ersan Guibert Tyson Whittingstall Hewitt Guibert Matsuo Anania Regan hakham Hunter Jayne Sierra Savva Gisbert Adamou Barrington Hakim Nobiliary particle O'Donovan family Abner lizard Kelso Hersey Piso Gerlach Albano Egerton Loui Rostopchin praenomen Achim Barnaby Rowan Sami Yoshihara Han Han Aubrey Han surname Princes of Paliano Shelley Cave Sherman Belarusian surname Armand patronymic Akiyoshi Sami Akilu Řehoř Gruffudd Wito Kaj Cassie Rauf Grand Master of the Teutonic Knights Albin Urban Izumi Árnadóttir Walther Regan Jabez Çubukçubaşı Marshall Melvyn Eraydın Wedekind Abe Redouane Parvin Neil Davern Şentürk Malick Inal Savva nomen Durmuş Fedde Falk Elias Chadi Curtis Nolan Abe Seyfi Lillie Apple Ševela Percy Shigematsu Tent caterpillar Köken Apple Britt Trimnell Mai Moa Warren He Olumide Hillis Rahim Cave Frenk Kinnon Tyrell Eden Rickard Herschel Joby Raimond Yaşar Edward Savin Loudon Mateja Sweeney Florenz Asiedu Robison Ritchard Mordaunt Mynors Prentice Man Blue Joby Hyeon Tyler Ademola Aïssata Aydın Laverne Lamont human infraspecific name Cale Gottlieb Marielle Veit Seon Sanusi Addis Browning Takumi Alfonzo Heinz Máté Mai Blake Robbie Mahrez Fabjan Raimond Jean Dalrymple Osborne Bakir Hilbert Ripley Russian surname Stuart Hisataka Calvert Barry Máté Hester Sang Paltiel Virgil Alonso Salman Golden Courtney Michel Han Amin Minami Leonard Germann Hara Fabiano Sabra Jordan Izumi Afa-Negus Seon Florida black bass Sang Hunter Fearnley James Ganna Lillie Aynsley orthographical variant Gyalwang Drukpa Arnell Qutb Norman Koren Koren Henning Wilf Finlay Ado Haym Chariton Alden Marion Milić Jonas Freundel Bas Lu Amos Roveda Gill Abbas Neilson Roveda Řehoř Sylvester Thijs Bernard Alfonzo Berchtold Cushman Flower Patti Clint Kingsley Gerbrand Greenbury Harouna Henrie Florian McKeown Simon Aynsley Ripley Hester Miwa Griffith Dale Romaine Clay BIFF Brahman Ataman Fethi Rupert Alden Azuma Keefe Noah Bas Squire Herrmann Henrie Dong Hamilton Cushman Keill Moumouni magi Biff Caomhánach Tokiwa Patti Melville Tone Savea Arian dung beetles Dale Brady Maury Akpan
Máté, Han and Hester are a portion of atmost 1 concepts or behaviors
Máté Han Hester
action atmost
action union
action find_tuple_counts
relation part of
type name
type concept
action find_tuple_counts
relation part of
type name
type behavior
value 1
[{'concept': 'name'}, 'part of', [{'concept': 'concept'}, {'concept': 'behavior'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?q ) AS ?u ) WHERE { { ?n rdf:type ontology:name . ?q rdf:type ontology:behavior . ?n property:part_of ?q } UNION { ?n property:part_of ?q . ?n rdf:type ontology:name . ?q rdf:type ontology:concept } } GROUP BY ?n } . FILTER ( ?u <= 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q82799
USER
How many languages are the languages of work for atleast 77 names ?
(c(Q82799),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 77
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:Q34770 . ?t rdf:type ontology:Q82799 . ?t property:P407 ?m } GROUP BY ?m } . FILTER ( ?r >= 77 ) }
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 77
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:language . ?t rdf:type ontology:name . ?t property:language_of_work_or_name ?m } GROUP BY ?m } . FILTER ( ?r >= 77 ) }
[]
language name
SYSTEM
2
Q1860 Q1321
(c(Q82799),P407,c(Q34770))
action count
action atleast
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 77
[ANSWER]
[{'concept': 'Q82799'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:Q34770 . ?t rdf:type ontology:Q82799 . ?t property:P407 ?m } GROUP BY ?m } . FILTER ( ?r >= 77 ) }
English Spanish
2
action count
action atleast
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 77
[{'concept': 'name'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?b ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:language . ?t rdf:type ontology:name . ?t property:language_of_work_or_name ?m } GROUP BY ?m } . FILTER ( ?r >= 77 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q148
P840
Q5398426 Q27119593
USER
How many television series and book formats have their setting located at People's Republic of China ?
(c(Q5398426),P840,Q148) (c(Q27119593),P840,Q148)
action count
action union
action filter_type
action find_reverse
entity Q148
relation P840
type Q5398426
action filter_type
action find_reverse
entity Q148
relation P840
type Q27119593
[{'concept': 'Q5398426'}, 'P840', 'Q148'] [{'concept': 'Q27119593'}, 'P840', 'Q148']
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { ?k property:P840 resource:Q148 . ?k rdf:type ontology:Q5398426 } UNION { ?k property:P840 resource:Q148 . ?k rdf:type ontology:Q27119593 } }
People's Republic of China
action count
action union
action filter_type
action find_reverse
entity People's Republic of China
relation narrative location
type television series
action filter_type
action find_reverse
entity People's Republic of China
relation narrative location
type book format
[{'concept': 'television series'}, 'narrative location', "People's Republic of China"] [{'concept': 'book format'}, 'narrative location', "People's Republic of China"]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { ?k property:narrative_location resource:People's_Republic_of_China . ?k rdf:type ontology:television_series } UNION { ?k property:narrative_location resource:People's_Republic_of_China . ?k rdf:type ontology:book_format } }
[]
television series book format
SYSTEM
1 television series and 1 book formats
Q2989881 Q2342463
(c(Q5398426),P840,Q148) (c(Q27119593),P840,Q148)
action count
action union
action filter_type
action find_reverse
entity Q148
relation P840
type Q5398426
action filter_type
action find_reverse
entity Q148
relation P840
type Q27119593
[ANSWER]
[{'concept': 'Q5398426'}, 'P840', 'Q148'] [{'concept': 'Q27119593'}, 'P840', 'Q148']
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { ?k property:P840 resource:Q148 . ?k rdf:type ontology:Q5398426 } UNION { ?k property:P840 resource:Q148 . ?k rdf:type ontology:Q27119593 } }
Marco Polo Teenage Mutant Ninja Turtles Adventures
1 television series and 1 book formats
action count
action union
action filter_type
action find_reverse
entity People's Republic of China
relation narrative location
type television series
action filter_type
action find_reverse
entity People's Republic of China
relation narrative location
type book format
[{'concept': 'television series'}, 'narrative location', "People's Republic of China"] [{'concept': 'book format'}, 'narrative location', "People's Republic of China"]
SELECT DISTINCT ( COUNT ( ?k ) AS ?n ) WHERE { { ?k property:narrative_location resource:People's_Republic_of_China . ?k rdf:type ontology:television_series } UNION { ?k property:narrative_location resource:People's_Republic_of_China . ?k rdf:type ontology:book_format } }
[]