Simple Question (Direct)
Simple Question
Q1239307
P20
Q56061
USER
Where did the demise of Don McCafferty occur ?
(Q1239307,P20,c(Q56061))
action filter_type
action find
entity Q1239307
relation P20
type Q56061
['Q1239307', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q1239307 property:P20 ?q . ?q rdf:type ontology:Q56061 }
Don McCafferty
action filter_type
action find
entity Don McCafferty
relation place of death
type administrative territorial entity
['Don McCafferty', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Don_McCafferty property:place_of_death ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q847596
SYSTEM
Pontiac
Q847596
(Q1239307,P20,c(Q56061))
action filter_type
action find
entity Q1239307
relation P20
type Q56061
The demise of Don McCafferty occurred in [ANSWER]
['Q1239307', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q1239307 property:P20 ?q . ?q rdf:type ontology:Q56061 }
Pontiac
The demise of Don McCafferty occurred in Pontiac
Pontiac
action filter_type
action find
entity Don McCafferty
relation place of death
type administrative territorial entity
['Don McCafferty', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Don_McCafferty property:place_of_death ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1239307
P106
Q12737077
USER
What is the profession of that person ?
(Q847596,P106,c(Q12737077))
action filter_type
action find
entity Q1239307
relation P106
type Q12737077
['Q847596', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1239307 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Don McCafferty
action filter_type
action find
entity Don McCafferty
relation occupation
type occupation
['Pontiac', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Don_McCafferty property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Q19204627
SYSTEM
American football player
Q19204627
(Q847596,P106,c(Q12737077))
action filter_type
action find
entity Q1239307
relation P106
type Q12737077
The profession of that person is an [ANSWER]
['Q847596', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q1239307 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
American football player
The profession of that person is an American football player
American football player
action filter_type
action find
entity Don McCafferty
relation occupation
type occupation
['Pontiac', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Don_McCafferty property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q6732208
P417
Q502895 Q12737077
USER
How many people are the patron saint of greater number of occupations than Magnus of Cuneo ?
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q6732208
relation P417
type Q502895
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P417 ?k . ?k rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?k } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q6732208 property:P417 ?r . ?r rdf:type ontology:Q502895 } } }
Magnus of Cuneo
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Magnus of Cuneo
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:patron_saint ?k . ?k rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?k } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Magnus_of_Cuneo property:patron_saint ?r . ?r rdf:type ontology:common_name } } }
[]
common name occupation
SYSTEM
54
Q453698 Q229190 Q152457 Q43689 Q328804 Q166876 Q163900 Q170547 Q212850 Q374822 Q9438 Q130997 Q312758 Q5575577 Q191107 Q242274 Q128538 Q183240 Q119289 Q360798 Q298845 Q48438 Q119512 Q44281 Q170164 Q43399 Q196653 Q508214 Q9200 Q193507 Q463600 Q43669 Q44265 Q192816 Q43982 Q179718 Q40662 Q332656 Q320171 Q137947 Q80513 Q43600 Q324700 Q744884 Q44015 Q151967 Q149727 Q232427 Q60059 Q17590 Q271474 Q200895 Q44248 Q276148
(c(Q12737077),P417,c(Q502895))
action count
action greater
action find_reverse_tuple_counts
relation P417
type Q502895
type Q12737077
action count
action filter_type
action find
entity Q6732208
relation P417
type Q502895
[ANSWER]
[{'concept': 'Q12737077'}, 'P417', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:P417 ?k . ?k rdf:type ontology:Q502895 . ?b rdf:type ontology:Q12737077 } GROUP BY ?k } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Q6732208 property:P417 ?r . ?r rdf:type ontology:Q502895 } } }
Saint Amand Catherine of Siena Saint Roch Ambrose John the Evangelist Isidore of Seville Saint Francis Xavier Anthony the Great Vitus Adrian of Nicomedia Thomas Aquinas Damasus I Jean-Baptiste de La Salle Gobnait Clare of Assisi Dorothea of Caesarea Luke the Evangelist Saint Lucy Leonard of Port Maurice Saint Eligius Saint Florian Saint George William of Maleval Ignatius of Loyola Helena of Constantinople Andrew Saint Veronica Cyriacus Paul Saint Christopher Saint Petronilla Thomas the Apostle Benedict of Nursia Saint Barbara Bartholomew the Apostle Catherine of Alexandria John the Baptist Camillus de Lellis John of God Alexius of Rome Saint Cecilia Matthew the Apostle Urban of Langres Zita John the Apostle Saint Blaise Saint Giles Saint Apollonia Albertus Magnus Lawrence of Rome Joseph of Arimathea Agatha of Sicily Jerome Charalampus
54
action count
action greater
action find_reverse_tuple_counts
relation patron saint
type common name
type occupation
action count
action filter_type
action find
entity Magnus of Cuneo
relation patron saint
type common name
[{'concept': 'occupation'}, 'patron saint', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?i ) WHERE { ?b property:patron_saint ?k . ?k rdf:type ontology:common_name . ?b rdf:type ontology:occupation } GROUP BY ?k } . FILTER ( ?i > ?p ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) WHERE { resource:Magnus_of_Cuneo property:patron_saint ?r . ?r rdf:type ontology:common_name } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6732208
P21
Q290
USER
What is the sex of that person ?
action filter_type
action find
entity Q6732208
relation P21
type Q290
SELECT DISTINCT ?t WHERE { resource:Q6732208 property:P21 ?t . ?t rdf:type ontology:Q290 }
Magnus of Cuneo
action filter_type
action find
entity Magnus of Cuneo
relation gender
type sex
SELECT DISTINCT ?t WHERE { resource:Magnus_of_Cuneo property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
action filter_type
action find
entity Q6732208
relation P21
type Q290
The sex of that person is a [ANSWER]
SELECT DISTINCT ?t WHERE { resource:Q6732208 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Magnus of Cuneo
relation gender
type sex
SELECT DISTINCT ?t WHERE { resource:Magnus_of_Cuneo property:gender ?t . ?t rdf:type ontology:sex }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1571025
P559
Q56061 Q728937 Q628179
USER
How many administrative territories are the endpoints for lesser number of railroad lines or trails than Mullan ?
(c(Q728937)|c(Q628179),P559,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q1571025
relation P559
type Q728937
type Q628179
[[{'concept': 'Q728937'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?j ) { ( ontology:Q728937 ) ( ontology:Q628179 ) } . ?y rdf:type ?j } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:P559 resource:Q1571025 . { VALUES ( ?t ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } . ?a rdf:type ?t } } } . FILTER ( ?x < ?m ) }
Mullan
action count
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Mullan
relation terminus
type railroad line
type trail
[[{'concept': 'railroad line'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?j ) { ( ontology:railroad_line ) ( ontology:trail ) } . ?y rdf:type ?j } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:terminus resource:Mullan . { VALUES ( ?t ) { ( ontology:trail ) ( ontology:railroad_line ) } . ?a rdf:type ?t } } } . FILTER ( ?x < ?m ) }
[]
administrative territorial entity railroad line trail
SYSTEM
127
Q938820 Q9832 Q3051477 Q1020217 Q11851639 Q23436 Q3812238 Q69639 Q1017610 Q10084 Q375314 Q12439 Q7567083 Q541055 Q723164 Q4825403 Q575557 Q985313 Q23311 Q687333 Q932159 Q49550 Q38511 Q3469728 Q185453 Q588804 Q3001 Q5902931 Q723372 Q167155 Q2272 Q986100 Q6023 Q7811572 Q7651719 Q171357 Q134620 Q956 Q959 Q992420 Q556989 Q1011611 Q649 Q2065223 Q211059 Q42159 Q1009428 Q18808 Q1011221 Q7050868 Q24826 Q6509 Q671348 Q5477618 Q5032535 Q4093 Q4356873 Q11839080 Q585 Q987170 Q35433 Q1763 Q1449 Q66208 Q2796951 Q848909 Q1420136 Q754868 Q687945 Q125080 Q782155 Q12714367 Q1757 Q36989 Q49218 Q990112 Q100 Q2734845 Q6820370 Q40840 Q542966 Q1616042 Q643944 Q756103 Q25330 Q3992 Q190847 Q1318695 Q2073801 Q1759693 Q369947 Q84 Q2300663 Q2132 Q2703030 Q2133814 Q794802 Q7944369 Q646784 Q79499 Q184383 Q6275457 Q263954 Q10561690 Q12892 Q6816 Q1735 Q466054 Q953081 Q180717 Q2086787 Q79804 Q895452 Q40325 Q1229951 Q953719 Q580016 Q2290 Q244289 Q588417 Q634172 Q146659 Q522362 Q790938 Q530309 Q65 Q1085
(c(Q728937)|c(Q628179),P559,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P559
type Q56061
type Q728937
action find_reverse_tuple_counts
relation P559
type Q56061
type Q628179
action count
action filter_multi_types
action find_reverse
entity Q1571025
relation P559
type Q728937
type Q628179
[ANSWER]
[[{'concept': 'Q728937'}, {'concept': 'Q628179'}], 'P559', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?j ) { ( ontology:Q728937 ) ( ontology:Q628179 ) } . ?y rdf:type ?j } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:P559 resource:Q1571025 . { VALUES ( ?t ) { ( ontology:Q628179 ) ( ontology:Q728937 ) } . ?a rdf:type ?t } } } . FILTER ( ?x < ?m ) }
Virrat Eindhoven Ellewoutsdijk Minehead Annalankangas Edinburgh Bronygarth Göschenen Horgoš Vlissingen Folkestone Detroit South Drain Oijen Pop Austrepollen Grand Tower Ingleton City of London Middleton-by-Wirksworth Hart Maó-Mahón Turku Salford Quays Multan Badrinath Paramaribo Horda, Norway Narva-Jõesuu Kalamazoo Skien Ridder Lapua Tobermory, Ontario Svartnes Kecskemét Jyväskylä Beijing Vladivostok Fjærland Ankeny Portpatrick Moscow Port Grimaud Jõhvi Hanam Drymen Pyongyang Kincardine Nordrepollen Liverpool Burgas Worthing Frafjord Cann River Glasgow Mariehäll Akdere, Silifke Oslo Inčukalns Saint-Rhémy-en-Bosses Murmansk Genoa Frutigen Cumberland Gap Fort William Herøya Cumberland San Bernardino Vaasa Jarrow Granvin Helsinki Pardubice Rochester Littlehampton Boston Henley-in-Arden Merritton, Ontario Tampere Angren, Uzbekistan Hessle Asaluyeh Lewes Trenton Liège Alexandroupoli Apoera Helmsley South Boston El Cajon London Gaylord Victoria Kilsby St Nicholas-at-Wade Otira Värpinge Moffat Helena Zeebrugge Jong, Norway Afobaka Lilla Alby Antwerp Ulan-Ude Innsbruck Mahdia Orivesi Sousse Manitou Springs Sitka Bowling, West Dunbartonshire Springfield L'Estaque South Haven Albina Porsgrunn Athis-Mons Sewell, Chile Banihal Clapham Bad Säckingen Aviemore Karkkila Los Angeles Prague
127
action count
action less
action union
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type railroad line
action find_reverse_tuple_counts
relation terminus
type administrative territorial entity
type trail
action count
action filter_multi_types
action find_reverse
entity Mullan
relation terminus
type railroad line
type trail
[[{'concept': 'railroad line'}, {'concept': 'trail'}], 'terminus', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?b ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?j ) { ( ontology:railroad_line ) ( ontology:trail ) } . ?y rdf:type ?j } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?a ) AS ?m ) WHERE { ?a property:terminus resource:Mullan . { VALUES ( ?t ) { ( ontology:trail ) ( ontology:railroad_line ) } . ?a rdf:type ?t } } } . FILTER ( ?x < ?m ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1239307
P27
Q15617994
USER
Which administrative territory is Don McCafferty an inhabitant of ?
(Q1239307,P27,c(Q15617994))
action filter_type
action find
entity Q1239307
relation P27
type Q15617994
['Q1239307', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1239307 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Don McCafferty
action filter_type
action find
entity Don McCafferty
relation country of citizenship
type designation for an administrative territorial entity
['Don McCafferty', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Don_McCafferty property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1239307,P27,c(Q15617994))
action filter_type
action find
entity Q1239307
relation P27
type Q15617994
[ANSWER] is Don McCafferty an inhabitant of
['Q1239307', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q1239307 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
United States of America
United States of America is Don McCafferty an inhabitant of
United States of America
action filter_type
action find
entity Don McCafferty
relation country of citizenship
type designation for an administrative territorial entity
['Don McCafferty', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Don_McCafferty property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P915
Q15416
USER
Which television programs were filmed in the location that administrative territory ?
(c(Q15416),P915,Q30)
action filter_type
action find_reverse
entity Q30
relation P915
type Q15416
[{'concept': 'Q15416'}, 'P915', 'Q30']
SELECT DISTINCT ?v WHERE { ?v property:P915 resource:Q30 . ?v rdf:type ontology:Q15416 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'United States of America']
SELECT DISTINCT ?v WHERE { ?v property:filming_location resource:United_States_of_America . ?v rdf:type ontology:television_program }
[]
television program
Q484825 Q23572
SYSTEM
The Lord of the Skies, Game of Thrones
Q484825 Q23572
(c(Q15416),P915,Q30)
action filter_type
action find_reverse
entity Q30
relation P915
type Q15416
[ANSWERS] were filmed in the location that administrative territory
[{'concept': 'Q15416'}, 'P915', 'Q30']
SELECT DISTINCT ?v WHERE { ?v property:P915 resource:Q30 . ?v rdf:type ontology:Q15416 }
The Lord of the Skies Game of Thrones
The Lord of the Skies and Game of Thrones were filmed in the location that administrative territory
The Lord of the Skies Game of Thrones
action filter_type
action find_reverse
entity United States of America
relation filming location
type television program
[{'concept': 'television program'}, 'filming location', 'United States of America']
SELECT DISTINCT ?v WHERE { ?v property:filming_location resource:United_States_of_America . ?v rdf:type ontology:television_program }
[]
Clarification
Simple Question|Single Entity|Indirect
Q23572
P170
Q502895
USER
Who are the creators of that television program ?
(Q23572,P170,c(Q502895))
action filter_type
action find
entity Q23572
relation P170
type Q502895
['Q23572', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q23572 property:P170 ?y . ?y rdf:type ontology:Q502895 }
Game of Thrones
action filter_type
action find
entity Game of Thrones
relation creator
type common name
['Game of Thrones', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Game_of_Thrones property:creator ?y . ?y rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q23572
SYSTEM
Did you mean Game of Thrones ?
Q484825 Q23572
(Q484825,P170,c(Q502895)) (Q23572,P170,c(Q502895))
[ANSWER]
['Q484825', 'P170', {'concept': 'Q502895'}] ['Q23572', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q23572 property:P170 ?y . ?y rdf:type ontology:Q502895 }
The Lord of the Skies Game of Thrones
Did you mean Game of Thrones ?
Game of Thrones
['The Lord of the Skies', 'creator', {'concept': 'common name'}] ['Game of Thrones', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Game_of_Thrones property:creator ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q23572,P170,c(Q502895))
['Q23572', 'P170', {'concept': 'Q502895'}]
['Game of Thrones', 'creator', {'concept': 'common name'}]
[]
Q1151388 Q503997
SYSTEM
D. B. Weiss, David Benioff
Q1151388 Q503997
(Q23572,P170,c(Q502895))
action filter_type
action find
entity Q23572
relation P170
type Q502895
The creators of that television program are John [ANSWERS]
['Q23572', 'P170', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q23572 property:P170 ?y . ?y rdf:type ontology:Q502895 }
D. B. Weiss David Benioff
The creators of that television program are John D. B. Weiss and David Benioff
D. B. Weiss David Benioff
action filter_type
action find
entity Game of Thrones
relation creator
type common name
['Game of Thrones', 'creator', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Game_of_Thrones property:creator ?y . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P725
Q502895 Q11424
USER
Which films have been dubbed by exactly 7 people ?
(c(Q11424),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q11424
type Q502895
value 7
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?l ) WHERE { ?f property:P725 ?n . ?f rdf:type ontology:Q11424 . ?n rdf:type ontology:Q502895 } GROUP BY ?f } }
action equal
action find_tuple_counts
relation voice actor
type film
type common name
value 7
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?l ) WHERE { ?f property:voice_actor ?n . ?f rdf:type ontology:film . ?n rdf:type ontology:common_name } GROUP BY ?f } }
[]
common name film
Q4499813 Q4341553 Q1406374
SYSTEM
Home, Pinocchio, Piglet's Big Movie
Q4499813 Q4341553 Q1406374
(c(Q11424),P725,c(Q502895))
action equal
action find_tuple_counts
relation P725
type Q11424
type Q502895
value 7
[ANSWERS] have been dubbed by exactly 7 people
[{'concept': 'Q11424'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?l ) WHERE { ?f property:P725 ?n . ?f rdf:type ontology:Q11424 . ?n rdf:type ontology:Q502895 } GROUP BY ?f } }
Home Pinocchio Piglet's Big Movie
Home, Pinocchio and Piglet's Big Movie have been dubbed by exactly 7 people
Home Pinocchio Piglet's Big Movie
action equal
action find_tuple_counts
relation voice actor
type film
type common name
value 7
[{'concept': 'film'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { FILTER ( ?l = 7 ) . { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?l ) WHERE { ?f property:voice_actor ?n . ?f rdf:type ontology:film . ?n rdf:type ontology:common_name } GROUP BY ?f } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P144
Q95074 Q15850590 Q15416
USER
How many television programs are adapted from atleast 1 fictional characters or theatrical genres ?
(c(Q15416),P144,c(Q95074)|c(Q15850590))
action count
action atleast
action union
action find_tuple_counts
relation P144
type Q15416
type Q95074
action find_tuple_counts
relation P144
type Q15416
type Q15850590
value 1
[{'concept': 'Q15416'}, 'P144', [{'concept': 'Q95074'}, {'concept': 'Q15850590'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { FILTER ( ?b >= 1 ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?a WHERE { { ?a property:P144 ?r . ?r rdf:type ontology:Q15850590 . ?a rdf:type ontology:Q15416 } UNION { ?a property:P144 ?r . ?a rdf:type ontology:Q15416 . ?r rdf:type ontology:Q95074 } } GROUP BY ?a } }
action count
action atleast
action union
action find_tuple_counts
relation based on
type television program
type fictional character
action find_tuple_counts
relation based on
type television program
type theatrical genre
value 1
[{'concept': 'television program'}, 'based on', [{'concept': 'fictional character'}, {'concept': 'theatrical genre'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { FILTER ( ?b >= 1 ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?a WHERE { { ?a property:based_on ?r . ?r rdf:type ontology:theatrical_genre . ?a rdf:type ontology:television_program } UNION { ?a property:based_on ?r . ?a rdf:type ontology:television_program . ?r rdf:type ontology:fictional_character } } GROUP BY ?a } }
[]
fictional character theatrical genre television program
SYSTEM
10
Q1651543 Q1610081 Q21450483 Q1508462 Q27788636 Q786090 Q4506311 Q201913 Q2851616 Q19800903
(c(Q15416),P144,c(Q95074)|c(Q15850590))
action count
action atleast
action union
action find_tuple_counts
relation P144
type Q15416
type Q95074
action find_tuple_counts
relation P144
type Q15416
type Q15850590
value 1
[ANSWER]
[{'concept': 'Q15416'}, 'P144', [{'concept': 'Q95074'}, {'concept': 'Q15850590'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { FILTER ( ?b >= 1 ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?a WHERE { { ?a property:P144 ?r . ?r rdf:type ontology:Q15850590 . ?a rdf:type ontology:Q15416 } UNION { ?a property:P144 ?r . ?a rdf:type ontology:Q15416 . ?r rdf:type ontology:Q95074 } } GROUP BY ?a } }
The Magic Flute Hercules The Rocky Horror Picture Show Reefer Madness Once Upon a Mattress Silver Surfer Gypsy Sherlock Holmes in New York Annie Rigoletto
10
action count
action atleast
action union
action find_tuple_counts
relation based on
type television program
type fictional character
action find_tuple_counts
relation based on
type television program
type theatrical genre
value 1
[{'concept': 'television program'}, 'based on', [{'concept': 'fictional character'}, {'concept': 'theatrical genre'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?f ) WHERE { FILTER ( ?b >= 1 ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?b ) ?a WHERE { { ?a property:based_on ?r . ?r rdf:type ontology:theatrical_genre . ?a rdf:type ontology:television_program } UNION { ?a property:based_on ?r . ?a rdf:type ontology:television_program . ?r rdf:type ontology:fictional_character } } GROUP BY ?a } }
[]