Simple Question (Direct)
Simple Question
Q7719444
P162
Q502895
USER
Who produced The Boss of Big Town ?
(Q7719444,P162,c(Q502895))
action filter_type
action find
entity Q7719444
relation P162
type Q502895
['Q7719444', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q7719444 property:P162 ?m }
The Boss of Big Town
action filter_type
action find
entity The Boss of Big Town
relation producer
type common name
['The Boss of Big Town', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:The_Boss_of_Big_Town property:producer ?m }
[]
common name
Q6115042
SYSTEM
Jack Schwarz
Q6115042
(Q7719444,P162,c(Q502895))
action filter_type
action find
entity Q7719444
relation P162
type Q502895
The [ANSWER] produced The Boss of Big Town
['Q7719444', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q502895 . resource:Q7719444 property:P162 ?m }
Jack Schwarz
The Jack Schwarz produced The Boss of Big Town
Jack Schwarz
action filter_type
action find
entity The Boss of Big Town
relation producer
type common name
['The Boss of Big Town', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:common_name . resource:The_Boss_of_Big_Town property:producer ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7719444
P57
Q502895
USER
Who was the director of The Boss of Big Town ?
(Q7719444,P57,c(Q502895))
action filter_type
action find
entity Q7719444
relation P57
type Q502895
['Q7719444', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q7719444 property:P57 ?f . ?f rdf:type ontology:Q502895 }
The Boss of Big Town
action filter_type
action find
entity The Boss of Big Town
relation director
type common name
['The Boss of Big Town', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_Boss_of_Big_Town property:director ?f . ?f rdf:type ontology:common_name }
[]
common name
Q2627406
SYSTEM
Arthur Dreifuss
Q2627406
(Q7719444,P57,c(Q502895))
action filter_type
action find
entity Q7719444
relation P57
type Q502895
The director of The Boss of Big Town was [ANSWER]
['Q7719444', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q7719444 property:P57 ?f . ?f rdf:type ontology:Q502895 }
Arthur Dreifuss
The director of The Boss of Big Town was Arthur Dreifuss
Arthur Dreifuss
action filter_type
action find
entity The Boss of Big Town
relation director
type common name
['The Boss of Big Town', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:The_Boss_of_Big_Town property:director ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5922790 Q7719444
P495
Q15617994
USER
Which administrative territories are the countries of origin of The Boss of Big Town or Hoy por hoy ?
OR((Q7719444,P495,c(Q15617994)), (Q5922790,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q7719444
relation P495
action find
entity Q5922790
relation P495
type Q15617994
{'OR': [['Q7719444', 'P495', {'concept': 'Q15617994'}], ['Q5922790', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q5922790 property:P495 ?n } UNION { resource:Q7719444 property:P495 ?n } } . ?n rdf:type ontology:Q15617994 }
Hoy por hoy The Boss of Big Town
action filter_type
action union
action find
entity The Boss of Big Town
relation country of origin
action find
entity Hoy por hoy
relation country of origin
type designation for an administrative territorial entity
{'OR': [['The Boss of Big Town', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Hoy por hoy', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Hoy_por_hoy property:country_of_origin ?n } UNION { resource:The_Boss_of_Big_Town property:country_of_origin ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q30
SYSTEM
Spain, United States of America
Q29 Q30
OR((Q7719444,P495,c(Q15617994)), (Q5922790,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q7719444
relation P495
action find
entity Q5922790
relation P495
type Q15617994
[ANSWERS] are the countries of origin of The Boss of Big Town or Hoy por hoy
{'OR': [['Q7719444', 'P495', {'concept': 'Q15617994'}], ['Q5922790', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q5922790 property:P495 ?n } UNION { resource:Q7719444 property:P495 ?n } } . ?n rdf:type ontology:Q15617994 }
Spain United States of America
Spain and United States of America are the countries of origin of The Boss of Big Town or Hoy por hoy
Spain United States of America
action filter_type
action union
action find
entity The Boss of Big Town
relation country of origin
action find
entity Hoy por hoy
relation country of origin
type designation for an administrative territorial entity
{'OR': [['The Boss of Big Town', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Hoy por hoy', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Hoy_por_hoy property:country_of_origin ?n } UNION { resource:The_Boss_of_Big_Town property:country_of_origin ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q27
P530
Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with more number of administrative territories than Ireland ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q27
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?b ) WHERE { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q27 property:P530 ?c } } }
Ireland
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Ireland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?b ) WHERE { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ireland property:diplomatic_relation ?c } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
25
Q801 Q805 Q668 Q142 Q145 Q148 Q711 Q403 Q159 Q43 Q155 Q884 Q30 Q929 Q38 Q230 Q184 Q225 Q347 Q17 Q114 Q212 Q858 Q1011 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q27
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?b ) WHERE { ?v property:P530 ?k . ?v rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?v } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:Q15617994 . resource:Q27 property:P530 ?c } } }
Israel Yemen India France United Kingdom People's Republic of China Mongolia Serbia Russia Turkey Brazil South Korea United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Liechtenstein Japan Kenya Ukraine Syria Cape Verde Zambia
25
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Ireland
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?v ) AS ?x ) WHERE { { SELECT DISTINCT ?v ( COUNT ( ?k ) AS ?b ) WHERE { ?v property:diplomatic_relation ?k . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . FILTER ( ?b > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ireland property:diplomatic_relation ?c } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q424
P530
Q15617994 Q15617994
USER
And how about Cambodia?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q424
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?h ) WHERE { ?w property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { resource:Q424 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?h > ?g ) }
Cambodia
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cambodia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?h ) WHERE { ?w property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { resource:Cambodia property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h > ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
109
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q424
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?h ) WHERE { ?w property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { resource:Q424 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?h > ?g ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
109
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cambodia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?h ) WHERE { ?w property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?g ) WHERE { resource:Cambodia property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?h > ?g ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11613666 Q7719444
P495 P17
Q15617994
USER
Which administrative territories are the countries of origin of The Boss of Big Town or are Maisaka, Shizuoka a part of ?
OR((Q7719444,P495,c(Q15617994)), (Q11613666,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7719444
relation P495
action find
entity Q11613666
relation P17
type Q15617994
{'OR': [['Q7719444', 'P495', {'concept': 'Q15617994'}], ['Q11613666', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q7719444 property:P495 ?g } UNION { resource:Q11613666 property:P17 ?g } } }
Maisaka, Shizuoka The Boss of Big Town
action filter_type
action union
action find
entity The Boss of Big Town
relation country of origin
action find
entity Maisaka, Shizuoka
relation country
type designation for an administrative territorial entity
{'OR': [['The Boss of Big Town', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Maisaka, Shizuoka', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:The_Boss_of_Big_Town property:country_of_origin ?g } UNION { resource:Maisaka,_Shizuoka property:country ?g } } }
[]
designation for an administrative territorial entity
Q17 Q30
SYSTEM
Japan, United States of America
Q17 Q30
OR((Q7719444,P495,c(Q15617994)), (Q11613666,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q7719444
relation P495
action find
entity Q11613666
relation P17
type Q15617994
[ANSWERS] are the countries of origin of The Boss of Big Town or are Maisaka, Shizuoka a part of
{'OR': [['Q7719444', 'P495', {'concept': 'Q15617994'}], ['Q11613666', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q7719444 property:P495 ?g } UNION { resource:Q11613666 property:P17 ?g } } }
Japan United States of America
Japan and United States of America are the countries of origin of The Boss of Big Town or are Maisaka, Shizuoka a part of
Japan United States of America
action filter_type
action union
action find
entity The Boss of Big Town
relation country of origin
action find
entity Maisaka, Shizuoka
relation country
type designation for an administrative territorial entity
{'OR': [['The Boss of Big Town', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Maisaka, Shizuoka', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:The_Boss_of_Big_Town property:country_of_origin ?g } UNION { resource:Maisaka,_Shizuoka property:country ?g } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2874528
P495
Q838948
USER
Did April in Love originate in those administrative territories ?
(Q2874528,P495,Q17) (Q2874528,P495,Q30)
action is_in
entity prev_answer
action find
entity Q2874528
relation P495
['Q2874528', 'P495', 'Q17'] ['Q2874528', 'P495', 'Q30']
ASK WHERE { VALUES ( ?w ) { ( resource:Q17 ) ( resource:Q30 ) } . resource:Q2874528 property:P495 ?w }
April in Love
action is_in
entity prev_answer
action find
entity April in Love
relation country of origin
['April in Love', 'country of origin', 'Japan'] ['April in Love', 'country of origin', 'United States of America']
ASK WHERE { VALUES ( ?w ) { ( resource:Japan ) ( resource:United_States_of_America ) } . resource:April_in_Love property:country_of_origin ?w }
[]
work of art
SYSTEM
NO
(Q2874528,P495,Q17) (Q2874528,P495,Q30)
action is_in
entity prev_answer
action find
entity Q2874528
relation P495
[ANSWER]
['Q2874528', 'P495', 'Q17'] ['Q2874528', 'P495', 'Q30']
ASK WHERE { VALUES ( ?w ) { ( resource:Q17 ) ( resource:Q30 ) } . resource:Q2874528 property:P495 ?w }
No
action is_in
entity prev_answer
action find
entity April in Love
relation country of origin
['April in Love', 'country of origin', 'Japan'] ['April in Love', 'country of origin', 'United States of America']
ASK WHERE { VALUES ( ?w ) { ( resource:Japan ) ( resource:United_States_of_America ) } . resource:April_in_Love property:country_of_origin ?w }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q11806 Q7682031
P6
Q502895
USER
Is John Adams and Tan Chin Nam the head of the goverment of United States of America ?
(Q30,P6,Q11806) (Q30,P6,Q7682031)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11806
relation P6
action find_reverse
entity Q7682031
relation P6
['Q30', 'P6', 'Q11806'] ['Q30', 'P6', 'Q7682031']
ASK WHERE { resource:Q30 property:P6 resource:Q11806 . resource:Q30 property:P6 resource:Q7682031 }
United States of America John Adams Tan Chin Nam
action is_in
entity United States of America
action intersection
action find_reverse
entity John Adams
relation head of government
action find_reverse
entity Tan Chin Nam
relation head of government
['United States of America', 'head of government', 'John Adams'] ['United States of America', 'head of government', 'Tan Chin Nam']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:John_Adams . resource:United_States_of_America property:head_of_government resource:Tan_Chin_Nam }
[]
common name
SYSTEM
YES and NO respectively
(Q30,P6,Q11806) (Q30,P6,Q7682031)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11806
relation P6
action find_reverse
entity Q7682031
relation P6
[ANSWER]
['Q30', 'P6', 'Q11806'] ['Q30', 'P6', 'Q7682031']
ASK WHERE { resource:Q30 property:P6 resource:Q11806 . resource:Q30 property:P6 resource:Q7682031 }
YES and NO respectively
action is_in
entity United States of America
action intersection
action find_reverse
entity John Adams
relation head of government
action find_reverse
entity Tan Chin Nam
relation head of government
['United States of America', 'head of government', 'John Adams'] ['United States of America', 'head of government', 'Tan Chin Nam']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:John_Adams . resource:United_States_of_America property:head_of_government resource:Tan_Chin_Nam }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q30
P291
Q2342494 Q482994
USER
How many collectables or albums were published in United States of America ?
(c(Q2342494),P291,Q30) (c(Q482994),P291,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P291
type Q2342494
action filter_type
action find_reverse
entity Q30
relation P291
type Q482994
[{'concept': 'Q2342494'}, 'P291', 'Q30'] [{'concept': 'Q482994'}, 'P291', 'Q30']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { ?a rdf:type ontology:Q482994 . ?a property:P291 resource:Q30 } UNION { ?a property:P291 resource:Q30 . ?a rdf:type ontology:Q2342494 } }
United States of America
action count
action union
action filter_type
action find_reverse
entity United States of America
relation place of publication
type collectable
action filter_type
action find_reverse
entity United States of America
relation place of publication
type album
[{'concept': 'collectable'}, 'place of publication', 'United States of America'] [{'concept': 'album'}, 'place of publication', 'United States of America']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { ?a rdf:type ontology:album . ?a property:place_of_publication resource:United_States_of_America } UNION { ?a property:place_of_publication resource:United_States_of_America . ?a rdf:type ontology:collectable } }
[]
collectable album
SYSTEM
20
Q5614417 Q22337596 Q130310 Q648472 Q5200228 Q5233762 Q4102794 Q5287318 Q251604 Q7745921 Q11323183 Q5287315 Q5287314 Q5287316 Q5287321 Q2894284 Q7773132 Q3257069 Q5287313 Q4632382
(c(Q2342494),P291,Q30) (c(Q482994),P291,Q30)
action count
action union
action filter_type
action find_reverse
entity Q30
relation P291
type Q2342494
action filter_type
action find_reverse
entity Q30
relation P291
type Q482994
[ANSWER]
[{'concept': 'Q2342494'}, 'P291', 'Q30'] [{'concept': 'Q482994'}, 'P291', 'Q30']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { ?a rdf:type ontology:Q482994 . ?a property:P291 resource:Q30 } UNION { ?a property:P291 resource:Q30 . ?a rdf:type ontology:Q2342494 } }
Gub Gub's Book Historical Dictionary of Tennis Sweet Dreams Essential Cypherpunks Doctor Dolittle and the Secret Lake Valentine Doctor Dolittle's Zoo The Story of Doctor Dolittle The Last Opium Den Doctor Dolittle's Puddleby Adventures Doctor Dolittle's Circus Doctor Dolittle's Garden Doctor Dolittle's Post Office Doctor Dolittle in the Moon Doctor Dolittle and the Green Canary The Voyages of Doctor Dolittle Live in France Doctor Dolittle's Caravan 26 Fairmount Avenue
20
action count
action union
action filter_type
action find_reverse
entity United States of America
relation place of publication
type collectable
action filter_type
action find_reverse
entity United States of America
relation place of publication
type album
[{'concept': 'collectable'}, 'place of publication', 'United States of America'] [{'concept': 'album'}, 'place of publication', 'United States of America']
SELECT DISTINCT ( COUNT ( ?a ) AS ?g ) WHERE { { ?a rdf:type ontology:album . ?a property:place_of_publication resource:United_States_of_America } UNION { ?a property:place_of_publication resource:United_States_of_America . ?a rdf:type ontology:collectable } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q17 Q21808755
P35
Q502895
USER
How many people are the chiefs of state of Japan or Duvalier dynasty ?
(Q17,P35,c(Q502895)) (Q21808755,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q17
relation P35
type Q502895
action filter_type
action find
entity Q21808755
relation P35
type Q502895
['Q17', 'P35', {'concept': 'Q502895'}] ['Q21808755', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?j ) { ( resource:Q21808755 ) ( resource:Q17 ) } . ?j property:P35 ?p }
Japan Duvalier dynasty
action count
action union
action filter_type
action find
entity Japan
relation head of state
type common name
action filter_type
action find
entity Duvalier dynasty
relation head of state
type common name
['Japan', 'head of state', {'concept': 'common name'}] ['Duvalier dynasty', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?j ) { ( resource:Duvalier_dynasty ) ( resource:Japan ) } . ?j property:head_of_state ?p }
[]
common name
SYSTEM
3
Q310775 Q37979 Q187697
(Q17,P35,c(Q502895)) (Q21808755,P35,c(Q502895))
action count
action union
action filter_type
action find
entity Q17
relation P35
type Q502895
action filter_type
action find
entity Q21808755
relation P35
type Q502895
[ANSWER]
['Q17', 'P35', {'concept': 'Q502895'}] ['Q21808755', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?j ) { ( resource:Q21808755 ) ( resource:Q17 ) } . ?j property:P35 ?p }
Jean-Claude Duvalier Akihito François Duvalier
3
action count
action union
action filter_type
action find
entity Japan
relation head of state
type common name
action filter_type
action find
entity Duvalier dynasty
relation head of state
type common name
['Japan', 'head of state', {'concept': 'common name'}] ['Duvalier dynasty', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?k ) WHERE { VALUES ( ?j ) { ( resource:Duvalier_dynasty ) ( resource:Japan ) } . ?j property:head_of_state ?p }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q29 Q499565
P276
Q1190554
USER
How many events are located at Spain or Tower Hill ?
(c(Q1190554),P276,Q29) (c(Q1190554),P276,Q499565)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P276
type Q1190554
action filter_type
action find_reverse
entity Q499565
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q29'] [{'concept': 'Q1190554'}, 'P276', 'Q499565']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P276 resource:Q499565 . ?s rdf:type ontology:Q1190554 } UNION { ?s property:P276 resource:Q29 . ?s rdf:type ontology:Q1190554 } }
Spain Tower Hill
action count
action union
action filter_type
action find_reverse
entity Spain
relation location
type event
action filter_type
action find_reverse
entity Tower Hill
relation location
type event
[{'concept': 'event'}, 'location', 'Spain'] [{'concept': 'event'}, 'location', 'Tower Hill']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:location resource:Tower_Hill . ?s rdf:type ontology:event } UNION { ?s property:location resource:Spain . ?s rdf:type ontology:event } }
[]
event
SYSTEM
2
Q2889928 Q1340107
(c(Q1190554),P276,Q29) (c(Q1190554),P276,Q499565)
action count
action union
action filter_type
action find_reverse
entity Q29
relation P276
type Q1190554
action filter_type
action find_reverse
entity Q499565
relation P276
type Q1190554
[ANSWER]
[{'concept': 'Q1190554'}, 'P276', 'Q29'] [{'concept': 'Q1190554'}, 'P276', 'Q499565']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:P276 resource:Q499565 . ?s rdf:type ontology:Q1190554 } UNION { ?s property:P276 resource:Q29 . ?s rdf:type ontology:Q1190554 } }
Battle of San Marcial Cantabrian Wars
2
action count
action union
action filter_type
action find_reverse
entity Spain
relation location
type event
action filter_type
action find_reverse
entity Tower Hill
relation location
type event
[{'concept': 'event'}, 'location', 'Spain'] [{'concept': 'event'}, 'location', 'Tower Hill']
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { ?s property:location resource:Tower_Hill . ?s rdf:type ontology:event } UNION { ?s property:location resource:Spain . ?s rdf:type ontology:event } }
[]