Simple Question (Direct)
Simple Question
Q17048803
P840
Q56061
USER
What location is Stuart Little set in ?
(Q17048803,P840,c(Q56061))
action filter_type
action find
entity Q17048803
relation P840
type Q56061
['Q17048803', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q17048803 property:P840 ?p . ?p rdf:type ontology:Q56061 }
Stuart Little
action filter_type
action find
entity Stuart Little
relation narrative location
type administrative territorial entity
['Stuart Little', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Stuart_Little property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q17048803,P840,c(Q56061))
action filter_type
action find
entity Q17048803
relation P840
type Q56061
Stuart Little is set in [ANSWER]
['Q17048803', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q17048803 property:P840 ?p . ?p rdf:type ontology:Q56061 }
New York City
Stuart Little is set in New York City
New York City
action filter_type
action find
entity Stuart Little
relation narrative location
type administrative territorial entity
['Stuart Little', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Stuart_Little property:narrative_location ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17048803
P57
Q502895
USER
Which person served as the directed of Stuart Little ?
(Q17048803,P57,c(Q502895))
action filter_type
action find
entity Q17048803
relation P57
type Q502895
['Q17048803', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q17048803 property:P57 ?n . ?n rdf:type ontology:Q502895 }
Stuart Little
action filter_type
action find
entity Stuart Little
relation director
type common name
['Stuart Little', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Stuart_Little property:director ?n . ?n rdf:type ontology:common_name }
[]
common name
Q1151111
SYSTEM
Rob Minkoff
Q1151111
(Q17048803,P57,c(Q502895))
action filter_type
action find
entity Q17048803
relation P57
type Q502895
[ANSWER] served as the directed of Stuart Little
['Q17048803', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { resource:Q17048803 property:P57 ?n . ?n rdf:type ontology:Q502895 }
Rob Minkoff
Rob Minkoff served as the directed of Stuart Little
Rob Minkoff
action filter_type
action find
entity Stuart Little
relation director
type common name
['Stuart Little', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { resource:Stuart_Little property:director ?n . ?n rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1151111
P1431
Q838948
USER
Which work of art is produced by that person ?
(c(Q838948),P1431,Q1151111)
action filter_type
action find_reverse
entity Q1151111
relation P1431
type Q838948
[{'concept': 'Q838948'}, 'P1431', 'Q1151111']
SELECT DISTINCT ?t WHERE { ?t property:P1431 resource:Q1151111 . ?t rdf:type ontology:Q838948 }
Rob Minkoff
action filter_type
action find_reverse
entity Rob Minkoff
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'Rob Minkoff']
SELECT DISTINCT ?t WHERE { ?t property:executive_producer resource:Rob_Minkoff . ?t rdf:type ontology:work_of_art }
[]
work of art
Q1212923
SYSTEM
The Haunted Mansion
Q1212923
(c(Q838948),P1431,Q1151111)
action filter_type
action find_reverse
entity Q1151111
relation P1431
type Q838948
[ANSWER] is produced by that person
[{'concept': 'Q838948'}, 'P1431', 'Q1151111']
SELECT DISTINCT ?t WHERE { ?t property:P1431 resource:Q1151111 . ?t rdf:type ontology:Q838948 }
The Haunted Mansion
The Haunted Mansion is produced by that person
The Haunted Mansion
action filter_type
action find_reverse
entity Rob Minkoff
relation executive producer
type work of art
[{'concept': 'work of art'}, 'executive producer', 'Rob Minkoff']
SELECT DISTINCT ?t WHERE { ?t property:executive_producer resource:Rob_Minkoff . ?t rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1151111
P170
Q15416
USER
Which works were created by that person ?
(c(Q15416),P170,Q1212923)
action filter_type
action find_reverse
entity Q1151111
relation P170
type Q15416
[{'concept': 'Q15416'}, 'P170', 'Q1212923']
SELECT DISTINCT ?q WHERE { ?q property:P170 resource:Q1151111 . ?q rdf:type ontology:Q15416 }
Rob Minkoff
action filter_type
action find_reverse
entity Rob Minkoff
relation creator
type television program
[{'concept': 'television program'}, 'creator', 'The Haunted Mansion']
SELECT DISTINCT ?q WHERE { ?q property:creator resource:Rob_Minkoff . ?q rdf:type ontology:television_program }
[]
television program
Q720650
SYSTEM
Aftermath
Q720650
(c(Q15416),P170,Q1212923)
action filter_type
action find_reverse
entity Q1151111
relation P170
type Q15416
[ANSWER] was created by that person
[{'concept': 'Q15416'}, 'P170', 'Q1212923']
SELECT DISTINCT ?q WHERE { ?q property:P170 resource:Q1151111 . ?q rdf:type ontology:Q15416 }
Aftermath
Aftermath was created by that person
Aftermath
action filter_type
action find_reverse
entity Rob Minkoff
relation creator
type television program
[{'concept': 'television program'}, 'creator', 'The Haunted Mansion']
SELECT DISTINCT ?q WHERE { ?q property:creator resource:Rob_Minkoff . ?q rdf:type ontology:television_program }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1217787
P941
Q838948 Q2342494 Q838948
USER
How many works of art were more number of collectables and works of art inspired by than The Time Machine ?
(c(Q2342494)|c(Q838948),P941,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1217787
relation P941
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?f WHERE { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?f } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:Q2342494 } UNION { ?e rdf:type ontology:Q838948 } } . ?e property:P941 resource:Q1217787 } } }
The Time Machine
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity The Time Machine
relation inspired by
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?f WHERE { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?f } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:collectable } UNION { ?e rdf:type ontology:work_of_art } } . ?e property:inspired_by resource:The_Time_Machine } } }
[]
work of art collectable work of art
SYSTEM
13
Q1136305 Q107724 Q1852671 Q19560629 Q17738 Q181598 Q753298 Q1754737 Q186014 Q734834 Q375786 Q83186 Q465478
(c(Q2342494)|c(Q838948),P941,c(Q838948))
action count
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q1217787
relation P941
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?f WHERE { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:Q838948 ) ( ontology:Q2342494 ) } } GROUP BY ?f } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:Q2342494 } UNION { ?e rdf:type ontology:Q838948 } } . ?e property:P941 resource:Q1217787 } } }
Doryphoros Thunderball Carnival of Souls 9/11 entschlüsselt Star Wars Episode IV: A New Hope King Lear Uncle Vanya Lady Snowblood Zeitgeist: The Movie Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan
13
action count
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type collectable
action find_reverse_tuple_counts
relation inspired by
type work of art
type work of art
action count
action filter_multi_types
action find_reverse
entity The Time Machine
relation inspired by
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?f WHERE { ?m rdf:type ?k . VALUES ( ?k ) { ( ontology:work_of_art ) ( ontology:collectable ) } } GROUP BY ?f } . FILTER ( ?o > ?s ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?s ) WHERE { { { ?e rdf:type ontology:collectable } UNION { ?e rdf:type ontology:work_of_art } } . ?e property:inspired_by resource:The_Time_Machine } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q743521
P840
Q56061 Q2342494 Q166142
USER
How many administrative territories are the narrative locations of greater number of collectables or applications than Scarborough ?
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q743521
relation P840
type Q2342494
type Q166142
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?h rdf:type ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q166142 } } . ?n property:P840 resource:Q743521 } } . FILTER ( ?a > ?b ) }
Scarborough
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Scarborough
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:collectable ) ( ontology:application ) } . ?h rdf:type ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:application } } . ?n property:narrative_location resource:Scarborough } } . FILTER ( ?a > ?b ) }
[]
administrative territorial entity collectable application
SYSTEM
126
Q3579 Q704257 Q1874 Q1826473 Q25287 Q128499 Q804569 Q467664 Q23337 Q2656 Q1289 Q10690 Q1425428 Q1754 Q2500974 Q7054337 Q90 Q12892 Q82858 Q334 Q3437 Q215177 Q27168 Q16555 Q2048321 Q1891 Q39121 Q83317 Q5083 Q23154 Q3561 Q406 Q8678 Q6346 Q495 Q2044 Q2141 Q192517 Q23436 Q43301 Q490584 Q3141 Q1246235 Q25410 Q5212975 Q16554 Q16556 Q16557 Q8686 Q3130 Q52437 Q1297 Q131491 Q1741 Q1748 Q26881 Q1911961 Q84 Q85 Q42462 Q37320 Q735022 Q45301 Q11592 Q34863 Q72 Q71 Q16869 Q172 Q2028 Q2073798 Q26887 Q184587 Q79980 Q1861 Q2177880 Q5092 Q1011683 Q956 Q1490 Q134672 Q2302168 Q2807 Q1353 Q1352 Q27119 Q1524 Q220 Q617 Q612 Q21855637 Q2634 Q863058 Q34404 Q8717 Q64 Q65 Q60 Q61 Q62 Q5818 Q12439 Q23556 Q13362 Q6537 Q42810 Q641 Q727 Q649 Q2301524 Q852778 Q43919 Q12340625 Q47716 Q100 Q10686 Q350 Q62677 Q1781238 Q24826 Q1348 Q1156 Q3619316 Q485186 Q42448 Q33986
(c(Q2342494)|c(Q166142),P840,c(Q56061))
action count
action greater
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
action find_reverse_tuple_counts
relation P840
type Q56061
type Q166142
action count
action filter_multi_types
action find_reverse
entity Q743521
relation P840
type Q2342494
type Q166142
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q166142'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:Q2342494 ) ( ontology:Q166142 ) } . ?h rdf:type ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { { ?n rdf:type ontology:Q2342494 } UNION { ?n rdf:type ontology:Q166142 } } . ?n property:P840 resource:Q743521 } } . FILTER ( ?a > ?b ) }
Tripoli Albany Odessa Tversted Gothenburg Yalta Bala, Ontario Butte Salt Lake City Palermo Grenoble Cardiff Newcastle upon Tyne Stockholm Richmond North Buxton, Ontario Paris Antwerp Sigmaringen Singapore Perugia Skagen Randers Houston Varde Bologna Leeds Mosul Seattle Bristol Algiers Istanbul Rio de Janeiro Indianapolis Turin Florence Halifax Boulder Edinburgh Fresno Flint Melbourne Nørresundby Aalborg Damsholte Denver Phoenix Dallas Shanghai Sydney Murano Chicago Brighton Vienna Copenhagen Helsingør Thorning London Cairo York Cleveland Walnut Grove, Minnesota Trabzon Sonoma Oklahoma City Zürich Geneva Constantinople Toronto Verona Welch Davenport Grand Rapids Varanasi Bangkok Ågerup Baltimore Rødbyhavn Beijing Tokyo Exeter Kjellerup Madrid Delhi Chennai Kolding Athens Rome Padua Dubai Hvilsager Naples Summerside New Orleans Seville Berlin Los Angeles New York City Washington, D.C. San Francisco Córdoba Detroit Atlanta Ferrara Vicenza Le Havre Venice Amsterdam Moscow Stege Whitby Salem Vejlby Charleston Boston Belfast Cambridge Karakorum Stureby Liverpool Kolkata Mumbai Grenå Key West Sheffield Valparaíso
126
action count
action greater
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type application
action count
action filter_multi_types
action find_reverse
entity Scarborough
relation narrative location
type collectable
type application
[[{'concept': 'collectable'}, {'concept': 'application'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?p ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?h ) AS ?a ) WHERE { VALUES ( ?j ) { ( ontology:collectable ) ( ontology:application ) } . ?h rdf:type ?j } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { { { ?n rdf:type ontology:collectable } UNION { ?n rdf:type ontology:application } } . ?n property:narrative_location resource:Scarborough } } . FILTER ( ?a > ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q3177580
P1445
Q15416 Q386724
USER
How many works are set up by approximately the same number of television programs as The Walking Dead ?
(c(Q386724),P1445,c(Q15416))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q3177580
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?v ) WHERE { ?f property:P1445 ?m . ?f rdf:type ontology:Q386724 . ?m rdf:type ontology:Q15416 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Q3177580 property:P1445 ?j . ?j rdf:type ontology:Q386724 } } . FILTER ( ?v = ?l ) }
The Walking Dead
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?v ) WHERE { ?f property:fictional_universe_described_in ?m . ?f rdf:type ontology:work . ?m rdf:type ontology:television_program } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:The_Walking_Dead property:fictional_universe_described_in ?j . ?j rdf:type ontology:work } } . FILTER ( ?v = ?l ) }
[]
television program work
SYSTEM
4
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q15416))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q3177580
relation P1445
type Q386724
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?v ) WHERE { ?f property:P1445 ?m . ?f rdf:type ontology:Q386724 . ?m rdf:type ontology:Q15416 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:Q3177580 property:P1445 ?j . ?j rdf:type ontology:Q386724 } } . FILTER ( ?v = ?l ) }
Shrek Aladdin media franchise Stargate The Walking Dead
4
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?b ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?m ) AS ?v ) WHERE { ?f property:fictional_universe_described_in ?m . ?f rdf:type ontology:work . ?m rdf:type ontology:television_program } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { resource:The_Walking_Dead property:fictional_universe_described_in ?j . ?j rdf:type ontology:work } } . FILTER ( ?v = ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q15731902
P1445
Q15416 Q386724
USER
And what about Aladdin media franchise?
(c(Q386724),P1445,c(Q15416))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q15731902
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?u ) WHERE { ?c property:P1445 ?f . ?c rdf:type ontology:Q386724 . ?f rdf:type ontology:Q15416 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Q15731902 property:P1445 ?b . ?b rdf:type ontology:Q386724 } } . FILTER ( ?u = ?w ) }
Aladdin media franchise
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?u ) WHERE { ?c property:fictional_universe_described_in ?f . ?c rdf:type ontology:work . ?f rdf:type ontology:television_program } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Aladdin_media_franchise property:fictional_universe_described_in ?b . ?b rdf:type ontology:work } } . FILTER ( ?u = ?w ) }
[]
television program work
SYSTEM
4
Q15731902 Q11927 Q3177580 Q384426
(c(Q386724),P1445,c(Q15416))
action count
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q15416
action count
action filter_type
action find
entity Q15731902
relation P1445
type Q386724
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?u ) WHERE { ?c property:P1445 ?f . ?c rdf:type ontology:Q386724 . ?f rdf:type ontology:Q15416 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Q15731902 property:P1445 ?b . ?b rdf:type ontology:Q386724 } } . FILTER ( ?u = ?w ) }
Aladdin media franchise Stargate The Walking Dead Pirates of the Caribbean
4
action count
action approx
action find_tuple_counts
relation fictional universe described in
type work
type television program
action count
action filter_type
action find
entity Aladdin media franchise
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?d ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?u ) WHERE { ?c property:fictional_universe_described_in ?f . ?c rdf:type ontology:work . ?f rdf:type ontology:television_program } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { resource:Aladdin_media_franchise property:fictional_universe_described_in ?b . ?b rdf:type ontology:work } } . FILTER ( ?u = ?w ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q60
P206
Q355304 Q15324
USER
How many watercourses and bodies of water are situated in the neighbourhood of New York City ?
(Q60,P206,c(Q355304)) (Q60,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q60
relation P206
type Q355304
action filter_type
action find
entity Q60
relation P206
type Q15324
['Q60', 'P206', {'concept': 'Q355304'}] ['Q60', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:Q60 property:P206 ?o . ?o rdf:type ontology:Q355304 } UNION { resource:Q60 property:P206 ?o . ?o rdf:type ontology:Q15324 } }
New York City
action count
action union
action filter_type
action find
entity New York City
relation located next to body of water
type watercourse
action filter_type
action find
entity New York City
relation located next to body of water
type body of water
['New York City', 'located next to body of water', {'concept': 'watercourse'}] ['New York City', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:New_York_City property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse } UNION { resource:New_York_City property:located_next_to_body_of_water ?o . ?o rdf:type ontology:body_of_water } }
[]
watercourse body of water
SYSTEM
3 watercourses and 3 bodies of water
Q3140 Q1294277 Q867460 Q1064776 Q597451 Q928157
(Q60,P206,c(Q355304)) (Q60,P206,c(Q15324))
action count
action union
action filter_type
action find
entity Q60
relation P206
type Q355304
action filter_type
action find
entity Q60
relation P206
type Q15324
[ANSWER]
['Q60', 'P206', {'concept': 'Q355304'}] ['Q60', 'P206', {'concept': 'Q15324'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:Q60 property:P206 ?o . ?o rdf:type ontology:Q355304 } UNION { resource:Q60 property:P206 ?o . ?o rdf:type ontology:Q15324 } }
Hudson River Lower New York Bay Long Island Sound Upper New York Bay Harlem River Bronx River
3 watercourses and 3 bodies of water
action count
action union
action filter_type
action find
entity New York City
relation located next to body of water
type watercourse
action filter_type
action find
entity New York City
relation located next to body of water
type body of water
['New York City', 'located next to body of water', {'concept': 'watercourse'}] ['New York City', 'located next to body of water', {'concept': 'body of water'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?s ) WHERE { { resource:New_York_City property:located_next_to_body_of_water ?o . ?o rdf:type ontology:watercourse } UNION { resource:New_York_City property:located_next_to_body_of_water ?o . ?o rdf:type ontology:body_of_water } }
[]