Simple Question (Direct)
Simple Question
Q3126769
P344
Q502895
USER
Who is appointed as the cinematographer of Hangover Square ?
(Q3126769,P344,c(Q502895))
action filter_type
action find
entity Q3126769
relation P344
type Q502895
['Q3126769', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q3126769 property:P344 ?u }
Hangover Square
action filter_type
action find
entity Hangover Square
relation director of photography
type common name
['Hangover Square', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Hangover_Square property:director_of_photography ?u }
[]
common name
Q351563
SYSTEM
Joseph LaShelle
Q351563
(Q3126769,P344,c(Q502895))
action filter_type
action find
entity Q3126769
relation P344
type Q502895
[ANSWER] is appointed as the cinematographer of Hangover Square
['Q3126769', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q502895 . resource:Q3126769 property:P344 ?u }
Joseph LaShelle
Joseph LaShelle is appointed as the cinematographer of Hangover Square
Joseph LaShelle
action filter_type
action find
entity Hangover Square
relation director of photography
type common name
['Hangover Square', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:common_name . resource:Hangover_Square property:director_of_photography ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3126769
P364
Q34770
USER
Which language was used originally for the creation of Hangover Square ?
(Q3126769,P364,c(Q34770))
action filter_type
action find
entity Q3126769
relation P364
type Q34770
['Q3126769', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q3126769 property:P364 ?f . ?f rdf:type ontology:Q34770 }
Hangover Square
action filter_type
action find
entity Hangover Square
relation original language of work
type language
['Hangover Square', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Hangover_Square property:original_language_of_work ?f . ?f rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q3126769,P364,c(Q34770))
action filter_type
action find
entity Q3126769
relation P364
type Q34770
In [ANSWER] was used originally for the creation of Hangover Square
['Q3126769', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q3126769 property:P364 ?f . ?f rdf:type ontology:Q34770 }
English
In English was used originally for the creation of Hangover Square
English
action filter_type
action find
entity Hangover Square
relation original language of work
type language
['Hangover Square', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Hangover_Square property:original_language_of_work ?f . ?f rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q351563
P166
Q4220917
USER
Which film award was received by Joseph LaShelle ?
(Q351563,P166,c(Q4220917))
action filter_type
action find
entity Q351563
relation P166
type Q4220917
['Q351563', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?k WHERE { resource:Q351563 property:P166 ?k . ?k rdf:type ontology:Q4220917 }
Joseph LaShelle
action filter_type
action find
entity Joseph LaShelle
relation award received
type film award
['Joseph LaShelle', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?k WHERE { resource:Joseph_LaShelle property:award_received ?k . ?k rdf:type ontology:film_award }
[]
film award
Q21995139
SYSTEM
Academy Award for Best Cinematography, Black-and-White
Q21995139
(Q351563,P166,c(Q4220917))
action filter_type
action find
entity Q351563
relation P166
type Q4220917
[ANSWER] was received by Joseph LaShelle
['Q351563', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?k WHERE { resource:Q351563 property:P166 ?k . ?k rdf:type ontology:Q4220917 }
Academy Award for Best Cinematography, Black-and-White
Academy Award for Best Cinematography, Black-and-White was received by Joseph LaShelle
Academy Award for Best Cinematography, Black-and-White
action filter_type
action find
entity Joseph LaShelle
relation award received
type film award
['Joseph LaShelle', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?k WHERE { resource:Joseph_LaShelle property:award_received ?k . ?k rdf:type ontology:film_award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q351563
P1411
Q4220917
USER
What were Joseph LaShelle nominated for ?
(Q351563,P1411,c(Q4220917))
action filter_type
action find
entity Q351563
relation P1411
type Q4220917
['Q351563', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?e WHERE { resource:Q351563 property:P1411 ?e . ?e rdf:type ontology:Q4220917 }
Joseph LaShelle
action filter_type
action find
entity Joseph LaShelle
relation nominated for
type film award
['Joseph LaShelle', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?e WHERE { resource:Joseph_LaShelle property:nominated_for ?e . ?e rdf:type ontology:film_award }
[]
film award
Q21995136 Q21995139
SYSTEM
Academy Award for Best Cinematography, Color, Academy Award for Best Cinematography, Black-and-White
Q21995136 Q21995139
(Q351563,P1411,c(Q4220917))
action filter_type
action find
entity Q351563
relation P1411
type Q4220917
[ANSWERS]
['Q351563', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?e WHERE { resource:Q351563 property:P1411 ?e . ?e rdf:type ontology:Q4220917 }
Academy Award for Best Cinematography, Color Academy Award for Best Cinematography, Black-and-White
Joseph LaShelle were nominated for Academy Award for Best Cinematography, Color and Academy Award for Best Cinematography, Black-and-White
Academy Award for Best Cinematography, Color Academy Award for Best Cinematography, Black-and-White
action filter_type
action find
entity Joseph LaShelle
relation nominated for
type film award
['Joseph LaShelle', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?e WHERE { resource:Joseph_LaShelle property:nominated_for ?e . ?e rdf:type ontology:film_award }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q104123
Q4220917
USER
And how about Pulp Fiction?
(Q104123,P1411,c(Q4220917))
action filter_type
action find
entity Q104123
relation P1411
type Q4220917
['Q104123', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?k WHERE { resource:Q104123 property:P1411 ?k . ?k rdf:type ontology:Q4220917 }
Pulp Fiction
action filter_type
action find
entity Pulp Fiction
relation nominated for
type film award
['Pulp Fiction', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?k WHERE { resource:Pulp_Fiction property:nominated_for ?k . ?k rdf:type ontology:film_award }
[]
film award
Q106301 Q106291 Q6978541
SYSTEM
Academy Award for Best Supporting Actress, Academy Award for Best Supporting Actor, National Society of Film Critics Award for Best Screenplay
Q6978541 Q102427 Q4220897 Q540977 Q822907 Q41417 Q787145 Q139184 Q849124 Q586356 Q1720784 Q281939 Q723830 Q103916 Q1967731 Q687123 Q548389 Q41375 Q106291 Q1011509 Q103360 Q165313 Q593098 Q787131 Q106301 Q739633 Q15096815 Q4220900 Q4220901 Q1315008 Q400007
(Q104123,P1411,c(Q4220917))
action filter_type
action find
entity Q104123
relation P1411
type Q4220917
[ANSWERS]
['Q104123', 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?k WHERE { resource:Q104123 property:P1411 ?k . ?k rdf:type ontology:Q4220917 }
National Society of Film Critics Award for Best Screenplay Academy Award for Best Picture MTV Movie Award for Best Dance Sequence MTV Movie Award for Best Movie Golden Globe Award for Best Supporting Actress – Motion Picture Academy Award for Best Writing, Original Screenplay BAFTA Award for Best Editing BAFTA Award for Best Film Golden Globe Award for Best Screenplay Golden Globe Award for Best Director National Society of Film Critics Award for Best Film Academy Award for Best Film Editing Golden Globe Award for Best Supporting Actor – Motion Picture Academy Award for Best Actor National Society of Film Critics Award for Best Actor BAFTA Award for Best Actress in a Leading Role BAFTA Award for Best Actor in a Supporting Role BAFTA Award for Best Original Screenplay Academy Award for Best Supporting Actor Golden Globe Award for Best Motion Picture – Drama Academy Award for Best Director National Society of Film Critics Award for Best Supporting Actor Golden Globe Award for Best Actor – Motion Picture Drama BAFTA Award for Best Direction Academy Award for Best Supporting Actress BAFTA Award for Best Sound MTV Movie Award for Best Female Performance MTV Movie Award for Best On-Screen Duo MTV Movie Award for Best Male Performance National Society of Film Critics Award for Best Director BAFTA Award for Best Actor in a Leading Role
Academy Award for Best Supporting Actress Academy Award for Best Supporting Actor National Society of Film Critics Award for Best Screenplay
action filter_type
action find
entity Pulp Fiction
relation nominated for
type film award
['Pulp Fiction', 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?k WHERE { resource:Pulp_Fiction property:nominated_for ?k . ?k rdf:type ontology:film_award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q104123
P1441
Q6619679
USER
Which fictional humanoids are present in that work of art ?
(c(Q6619679),P1441,Q106301) (c(Q6619679),P1441,Q106291) (c(Q6619679),P1441,Q6978541)
action filter_type
action find_reverse
entity Q104123
relation P1441
type Q6619679
[{'concept': 'Q6619679'}, 'P1441', 'Q106301'] [{'concept': 'Q6619679'}, 'P1441', 'Q106291'] [{'concept': 'Q6619679'}, 'P1441', 'Q6978541']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q6619679 . ?b property:P1441 resource:Q104123 }
Pulp Fiction
action filter_type
action find_reverse
entity Pulp Fiction
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Academy Award for Best Supporting Actress'] [{'concept': 'fictional humanoid'}, 'present in work', 'Academy Award for Best Supporting Actor'] [{'concept': 'fictional humanoid'}, 'present in work', 'National Society of Film Critics Award for Best Screenplay']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:fictional_humanoid . ?b property:present_in_work resource:Pulp_Fiction }
[]
fictional humanoid
Q15427568 Q16585660 Q3900376
SYSTEM
Vincent Vega, Jules Winnfield, Mia Wallace
Q15427568 Q3900376 Q16585660 Q19777775
(c(Q6619679),P1441,Q106301) (c(Q6619679),P1441,Q106291) (c(Q6619679),P1441,Q6978541)
action filter_type
action find_reverse
entity Q104123
relation P1441
type Q6619679
[ANSWERS] are present in that work of art
[{'concept': 'Q6619679'}, 'P1441', 'Q106301'] [{'concept': 'Q6619679'}, 'P1441', 'Q106291'] [{'concept': 'Q6619679'}, 'P1441', 'Q6978541']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q6619679 . ?b property:P1441 resource:Q104123 }
Vincent Vega Mia Wallace Jules Winnfield Butch Coolidge
Vincent Vega, Jules Winnfield and Mia Wallace are present in that work of art
Vincent Vega Jules Winnfield Mia Wallace
action filter_type
action find_reverse
entity Pulp Fiction
relation present in work
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'present in work', 'Academy Award for Best Supporting Actress'] [{'concept': 'fictional humanoid'}, 'present in work', 'Academy Award for Best Supporting Actor'] [{'concept': 'fictional humanoid'}, 'present in work', 'National Society of Film Critics Award for Best Screenplay']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:fictional_humanoid . ?b property:present_in_work resource:Pulp_Fiction }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q329989 Q104123
P1441
Q6619679
USER
Or Demons?
OR((c(Q6619679),P1441,Q104123), (c(Q6619679),P1441,Q329989))
action filter_type
action union
action find_reverse
entity Q104123
relation P1441
action find_reverse
entity Q329989
relation P1441
type Q6619679
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q104123'], [{'concept': 'Q6619679'}, 'P1441', 'Q329989']]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?r ) { ( resource:Q104123 ) ( resource:Q329989 ) } . ?s property:P1441 ?r } . ?s rdf:type ontology:Q6619679 }
Demons Pulp Fiction
action filter_type
action union
action find_reverse
entity Pulp Fiction
relation present in work
action find_reverse
entity Demons
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Pulp Fiction'], [{'concept': 'fictional humanoid'}, 'present in work', 'Demons']]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?r ) { ( resource:Pulp_Fiction ) ( resource:Demons ) } . ?s property:present_in_work ?r } . ?s rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Q15427568 Q3900376 Q15650243 Q16585660 Q19777775
SYSTEM
Vincent Vega, Mia Wallace, Nikolai Stavrogin, Jules Winnfield, Butch Coolidge
Q15427568 Q3900376 Q15650243 Q16585660 Q19777775
OR((c(Q6619679),P1441,Q104123), (c(Q6619679),P1441,Q329989))
action filter_type
action union
action find_reverse
entity Q104123
relation P1441
action find_reverse
entity Q329989
relation P1441
type Q6619679
[ANSWERS]
{'OR': [[{'concept': 'Q6619679'}, 'P1441', 'Q104123'], [{'concept': 'Q6619679'}, 'P1441', 'Q329989']]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?r ) { ( resource:Q104123 ) ( resource:Q329989 ) } . ?s property:P1441 ?r } . ?s rdf:type ontology:Q6619679 }
Vincent Vega Mia Wallace Nikolai Stavrogin Jules Winnfield Butch Coolidge
Vincent Vega Mia Wallace Nikolai Stavrogin Jules Winnfield Butch Coolidge
action filter_type
action union
action find_reverse
entity Pulp Fiction
relation present in work
action find_reverse
entity Demons
relation present in work
type fictional humanoid
{'OR': [[{'concept': 'fictional humanoid'}, 'present in work', 'Pulp Fiction'], [{'concept': 'fictional humanoid'}, 'present in work', 'Demons']]}
SELECT DISTINCT ?s WHERE { { VALUES ( ?r ) { ( resource:Pulp_Fiction ) ( resource:Demons ) } . ?s property:present_in_work ?r } . ?s rdf:type ontology:fictional_humanoid }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q15427568 Q3900376 Q15650243 Q16585660 Q19777775
P1441
Q838948
USER
Where are those fictional humanoids shown in ?
(Q15427568,P1441,c(Q838948)) (Q3900376,P1441,c(Q838948)) (Q15650243,P1441,c(Q838948)) (Q16585660,P1441,c(Q838948)) (Q19777775,P1441,c(Q838948))
action filter_type
action find
entity prev_answer
relation P1441
type Q838948
['Q15427568', 'P1441', {'concept': 'Q838948'}] ['Q3900376', 'P1441', {'concept': 'Q838948'}] ['Q15650243', 'P1441', {'concept': 'Q838948'}] ['Q16585660', 'P1441', {'concept': 'Q838948'}] ['Q19777775', 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { ?q property:P1441 ?o . VALUES ( ?q ) { ( resource:Q15427568 ) ( resource:Q3900376 ) ( resource:Q15650243 ) } . ?o rdf:type ontology:Q838948 }
Vincent Vega Mia Wallace Nikolai Stavrogin Jules Winnfield Butch Coolidge
action filter_type
action find
entity prev_answer
relation present in work
type work of art
['Vincent Vega', 'present in work', {'concept': 'work of art'}] ['Mia Wallace', 'present in work', {'concept': 'work of art'}] ['Nikolai Stavrogin', 'present in work', {'concept': 'work of art'}] ['Jules Winnfield', 'present in work', {'concept': 'work of art'}] ['Butch Coolidge', 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { ?q property:present_in_work ?o . VALUES ( ?q ) { ( resource:Vincent_Vega ) ( resource:Mia_Wallace ) ( resource:Nikolai_Stavrogin ) } . ?o rdf:type ontology:work_of_art }
[]
work of art
Q104123 Q104123 Q104123
SYSTEM
Pulp Fiction
Q104123 Q104123 Q2386746 Q104123 Q104123
(Q15427568,P1441,c(Q838948)) (Q3900376,P1441,c(Q838948)) (Q15650243,P1441,c(Q838948)) (Q16585660,P1441,c(Q838948)) (Q19777775,P1441,c(Q838948))
action filter_type
action find
entity prev_answer
relation P1441
type Q838948
Those fictional humanoids shown in are in [ANSWER], [ANSWER] and [ANSWER]
['Q15427568', 'P1441', {'concept': 'Q838948'}] ['Q3900376', 'P1441', {'concept': 'Q838948'}] ['Q15650243', 'P1441', {'concept': 'Q838948'}] ['Q16585660', 'P1441', {'concept': 'Q838948'}] ['Q19777775', 'P1441', {'concept': 'Q838948'}]
SELECT DISTINCT ?o WHERE { ?q property:P1441 ?o . VALUES ( ?q ) { ( resource:Q15427568 ) ( resource:Q3900376 ) ( resource:Q15650243 ) } . ?o rdf:type ontology:Q838948 }
Pulp Fiction Pulp Fiction The Possessed Pulp Fiction Pulp Fiction
Those fictional humanoids shown in are in Pulp Fiction, Pulp Fiction and Pulp Fiction
Pulp Fiction Pulp Fiction Pulp Fiction
action filter_type
action find
entity prev_answer
relation present in work
type work of art
['Vincent Vega', 'present in work', {'concept': 'work of art'}] ['Mia Wallace', 'present in work', {'concept': 'work of art'}] ['Nikolai Stavrogin', 'present in work', {'concept': 'work of art'}] ['Jules Winnfield', 'present in work', {'concept': 'work of art'}] ['Butch Coolidge', 'present in work', {'concept': 'work of art'}]
SELECT DISTINCT ?o WHERE { ?q property:present_in_work ?o . VALUES ( ?q ) { ( resource:Vincent_Vega ) ( resource:Mia_Wallace ) ( resource:Nikolai_Stavrogin ) } . ?o rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q104123
P136
Q1792379
USER
What can be considered as category for Pulp Fiction ?
(Q104123,P136,c(Q1792379))
action filter_type
action find
entity Q104123
relation P136
type Q1792379
['Q104123', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1792379 . resource:Q104123 property:P136 ?c }
Pulp Fiction
action filter_type
action find
entity Pulp Fiction
relation genre
type art genre
['Pulp Fiction', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:art_genre . resource:Pulp_Fiction property:genre ?c }
[]
art genre
Q459290 Q7444356 Q959790
SYSTEM
independent film, mob film, crime film
Q459290 Q7444356 Q959790 Q157443 Q130232
(Q104123,P136,c(Q1792379))
action filter_type
action find
entity Q104123
relation P136
type Q1792379
And [ANSWERS] can be considered as category for Pulp Fiction
['Q104123', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1792379 . resource:Q104123 property:P136 ?c }
independent film mob film crime film comedy film drama film
And independent film, mob film and crime film can be considered as category for Pulp Fiction
independent film mob film crime film
action filter_type
action find
entity Pulp Fiction
relation genre
type art genre
['Pulp Fiction', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:art_genre . resource:Pulp_Fiction property:genre ?c }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q753298
P941
Q838948 Q95074 Q838948
USER
Which works of art were approximately the same number of fictional characters and works of art inspired by as Uncle Vanya ?
(c(Q95074)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q753298
relation P941
type Q95074
type Q838948
[[{'concept': 'Q95074'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:P941 ?q . ?w rdf:type ontology:Q95074 . ?q rdf:type ontology:Q838948 } UNION { ?w property:P941 ?q . ?q rdf:type ontology:Q838948 . ?w rdf:type ontology:Q838948 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h property:P941 resource:Q753298 . { { ?h rdf:type ontology:Q95074 } UNION { ?h rdf:type ontology:Q838948 } } } } . FILTER ( ?k = ?g ) }
Uncle Vanya
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
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 Uncle Vanya
relation inspired by
type fictional character
type work of art
[[{'concept': 'fictional character'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:inspired_by ?q . ?w rdf:type ontology:fictional_character . ?q rdf:type ontology:work_of_art } UNION { ?w property:inspired_by ?q . ?q rdf:type ontology:work_of_art . ?w rdf:type ontology:work_of_art } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h property:inspired_by resource:Uncle_Vanya . { { ?h rdf:type ontology:fictional_character } UNION { ?h rdf:type ontology:work_of_art } } } } . FILTER ( ?k = ?g ) }
[]
work of art fictional character work of art
Q17738 Q107724 Q379873
SYSTEM
Star Wars Episode IV: A New Hope, Thunderball, Who Framed Roger Rabbit
Q1136305 Q107724 Q1852671 Q17738 Q1345920 Q181598 Q753298 Q1754737 Q186014 Q379873 Q734834 Q375786 Q83186 Q465478 Q214619
(c(Q95074)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q753298
relation P941
type Q95074
type Q838948
Star Wars Episode IV: A New Hope, Thunderball and Who framed Roger Rabbit were approximately the same number of fictional characters and works of art inspired by as Uncle Vanya
[[{'concept': 'Q95074'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:P941 ?q . ?w rdf:type ontology:Q95074 . ?q rdf:type ontology:Q838948 } UNION { ?w property:P941 ?q . ?q rdf:type ontology:Q838948 . ?w rdf:type ontology:Q838948 } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h property:P941 resource:Q753298 . { { ?h rdf:type ontology:Q95074 } UNION { ?h rdf:type ontology:Q838948 } } } } . FILTER ( ?k = ?g ) }
Doryphoros Thunderball Carnival of Souls Star Wars Episode IV: A New Hope Song of the South King Lear Uncle Vanya Lady Snowblood Zeitgeist: The Movie Who Framed Roger Rabbit Ghent Altarpiece Hippolytus Romeo and Juliet Star Trek II: The Wrath of Khan The Little Mermaid
Star Wars Episode IV: A New Hope, Thunderball and Who framed Roger Rabbit were approximately the same number of fictional characters and works of art inspired by as Uncle Vanya
Star Wars Episode IV: A New Hope Thunderball Who Framed Roger Rabbit
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
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 Uncle Vanya
relation inspired by
type fictional character
type work of art
[[{'concept': 'fictional character'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?w ) AS ?k ) WHERE { { ?w property:inspired_by ?q . ?w rdf:type ontology:fictional_character . ?q rdf:type ontology:work_of_art } UNION { ?w property:inspired_by ?q . ?q rdf:type ontology:work_of_art . ?w rdf:type ontology:work_of_art } } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?g ) WHERE { ?h property:inspired_by resource:Uncle_Vanya . { { ?h rdf:type ontology:fictional_character } UNION { ?h rdf:type ontology:work_of_art } } } } . FILTER ( ?k = ?g ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q7445655
P941
Q838948 Q95074 Q838948
USER
And also tell me about Seedbed?
(c(Q95074)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q7445655
relation P941
type Q95074
type Q838948
[[{'concept': 'Q95074'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:P941 ?y . ?y rdf:type ontology:Q838948 . ?o rdf:type ontology:Q95074 } UNION { ?o property:P941 ?y . ?o rdf:type ontology:Q838948 . ?y rdf:type ontology:Q838948 } } GROUP BY ?y } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P941 resource:Q7445655 . { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:Q95074 ) ( ontology:Q838948 ) } } } } }
Seedbed
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
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 Seedbed
relation inspired by
type fictional character
type work of art
[[{'concept': 'fictional character'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:inspired_by ?y . ?y rdf:type ontology:work_of_art . ?o rdf:type ontology:fictional_character } UNION { ?o property:inspired_by ?y . ?o rdf:type ontology:work_of_art . ?y rdf:type ontology:work_of_art } } GROUP BY ?y } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:inspired_by resource:Seedbed . { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:fictional_character ) ( ontology:work_of_art ) } } } } }
[]
work of art fictional character work of art
Q1144983 Q201293 Q1198611
SYSTEM
Animal Kingdom, Roman Holiday, The Absent-Minded Professor
Q125191 Q1198611 Q1217787 Q1856846 Q7758112 Q46239 Q19560629 Q2568137 Q201293 Q1432001 Q41567 Q1144983 Q18668045 Q7445655 Q4936847 Q3223805 Q5968141 Q1170100 Q169082
(c(Q95074)|c(Q838948),P941,c(Q838948))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q838948
type Q95074
action find_reverse_tuple_counts
relation P941
type Q838948
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q7445655
relation P941
type Q95074
type Q838948
[ANSWERS]
[[{'concept': 'Q95074'}, {'concept': 'Q838948'}], 'P941', {'concept': 'Q838948'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:P941 ?y . ?y rdf:type ontology:Q838948 . ?o rdf:type ontology:Q95074 } UNION { ?o property:P941 ?y . ?o rdf:type ontology:Q838948 . ?y rdf:type ontology:Q838948 } } GROUP BY ?y } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:P941 resource:Q7445655 . { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:Q95074 ) ( ontology:Q838948 ) } } } } }
photograph The Absent-Minded Professor The Time Machine The Ballad of Cable Hogue The Pretty Sister of Jose Statue of Zeus at Olympia 9/11 entschlüsselt How to Explain Pictures to a Dead Hare Roman Holiday Torquato Tasso Hamlet Animal Kingdom The Old Fisherman Seedbed Body Pressure The Judgement of Paris La sirena varada The Philadelphia Experiment 10 Things I Hate About You
Animal Kingdom Roman Holiday The Absent-Minded Professor
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type work of art
type fictional character
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 Seedbed
relation inspired by
type fictional character
type work of art
[[{'concept': 'fictional character'}, {'concept': 'work of art'}], 'inspired by', {'concept': 'work of art'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?o ) AS ?d ) WHERE { { ?o property:inspired_by ?y . ?y rdf:type ontology:work_of_art . ?o rdf:type ontology:fictional_character } UNION { ?o property:inspired_by ?y . ?o rdf:type ontology:work_of_art . ?y rdf:type ontology:work_of_art } } GROUP BY ?y } . FILTER ( ?d = ?p ) . { SELECT DISTINCT ( COUNT ( ?z ) AS ?p ) WHERE { ?z property:inspired_by resource:Seedbed . { ?z rdf:type ?b . VALUES ( ?b ) { ( ontology:fictional_character ) ( ontology:work_of_art ) } } } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q712548 Q15650243
P674
Q2342494
USER
Which collectables are Nikolai Stavrogin or Albus Dumbledore a character of ?
OR((c(Q2342494),P674,Q15650243), (c(Q2342494),P674,Q712548))
action filter_type
action union
action find_reverse
entity Q15650243
relation P674
action find_reverse
entity Q712548
relation P674
type Q2342494
{'OR': [[{'concept': 'Q2342494'}, 'P674', 'Q15650243'], [{'concept': 'Q2342494'}, 'P674', 'Q712548']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P674 resource:Q712548 } UNION { ?v property:P674 resource:Q15650243 } } . ?v rdf:type ontology:Q2342494 }
Albus Dumbledore Nikolai Stavrogin
action filter_type
action union
action find_reverse
entity Nikolai Stavrogin
relation characters
action find_reverse
entity Albus Dumbledore
relation characters
type collectable
{'OR': [[{'concept': 'collectable'}, 'characters', 'Nikolai Stavrogin'], [{'concept': 'collectable'}, 'characters', 'Albus Dumbledore']]}
SELECT DISTINCT ?v WHERE { { { ?v property:characters resource:Albus_Dumbledore } UNION { ?v property:characters resource:Nikolai_Stavrogin } } . ?v rdf:type ontology:collectable }
[]
collectable
Q43361 Q46887 Q329989 Q47209 Q46751
SYSTEM
Harry Potter and the Philosopher's Stone, Harry Potter and the Half-Blood Prince, Demons, Harry Potter and the Chamber of Secrets, Harry Potter and the Goblet of Fire
Q43361 Q46887 Q329989 Q47209 Q46751
OR((c(Q2342494),P674,Q15650243), (c(Q2342494),P674,Q712548))
action filter_type
action union
action find_reverse
entity Q15650243
relation P674
action find_reverse
entity Q712548
relation P674
type Q2342494
[ANSWERS] are Nikolai Stavrogin or Albus Dumbledore a character of
{'OR': [[{'concept': 'Q2342494'}, 'P674', 'Q15650243'], [{'concept': 'Q2342494'}, 'P674', 'Q712548']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P674 resource:Q712548 } UNION { ?v property:P674 resource:Q15650243 } } . ?v rdf:type ontology:Q2342494 }
Harry Potter and the Philosopher's Stone Harry Potter and the Half-Blood Prince Demons Harry Potter and the Chamber of Secrets Harry Potter and the Goblet of Fire
Harry Potter and the Philosopher's Stone, Harry Potter and the Half-Blood Prince, Demons, Harry Potter and the Chamber of Secrets and Harry Potter and the Goblet of Fire are Nikolai Stavrogin or Albus Dumbledore a character of
Harry Potter and the Philosopher's Stone Harry Potter and the Half-Blood Prince Demons Harry Potter and the Chamber of Secrets Harry Potter and the Goblet of Fire
action filter_type
action union
action find_reverse
entity Nikolai Stavrogin
relation characters
action find_reverse
entity Albus Dumbledore
relation characters
type collectable
{'OR': [[{'concept': 'collectable'}, 'characters', 'Nikolai Stavrogin'], [{'concept': 'collectable'}, 'characters', 'Albus Dumbledore']]}
SELECT DISTINCT ?v WHERE { { { ?v property:characters resource:Albus_Dumbledore } UNION { ?v property:characters resource:Nikolai_Stavrogin } } . ?v rdf:type ontology:collectable }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1781719
P1441
Q2342494 Q3895768
USER
Which fictional locations are from the works of greater number of collectables than Orthanc ?
(c(Q3895768),P1441,c(Q2342494))
action greater
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
action count
action filter_type
action find
entity Q1781719
relation P1441
type Q3895768
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?x ) WHERE { ?k property:P1441 ?h . ?k rdf:type ontology:Q3895768 . ?h rdf:type ontology:Q2342494 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q1781719 property:P1441 ?s . ?s rdf:type ontology:Q3895768 } } . FILTER ( ?x > ?b ) }
Orthanc
action greater
action find_tuple_counts
relation present in work
type fictional location
type collectable
action count
action filter_type
action find
entity Orthanc
relation present in work
type fictional location
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?x ) WHERE { ?k property:present_in_work ?h . ?k rdf:type ontology:fictional_location . ?h rdf:type ontology:collectable } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Orthanc property:present_in_work ?s . ?s rdf:type ontology:fictional_location } } . FILTER ( ?x > ?b ) }
[]
collectable fictional location
Q2997950 Q218728 Q2722222
SYSTEM
Waterdeep, Shire, Meduseld
Q2722222 Q218728 Q16481554 Q1098873 Q1877267 Q11800584 Q46289 Q2997950
(c(Q3895768),P1441,c(Q2342494))
action greater
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
action count
action filter_type
action find
entity Q1781719
relation P1441
type Q3895768
[ANSWERS] are from the works of greater number of collectables than Orthanc
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?x ) WHERE { ?k property:P1441 ?h . ?k rdf:type ontology:Q3895768 . ?h rdf:type ontology:Q2342494 } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Q1781719 property:P1441 ?s . ?s rdf:type ontology:Q3895768 } } . FILTER ( ?x > ?b ) }
Meduseld Shire Galma Andúnië Morrowland Last Bridge Mirkwood Waterdeep
Waterdeep, Shire and Meduseld are from the works of greater number of collectables than Orthanc
Waterdeep Shire Meduseld
action greater
action find_tuple_counts
relation present in work
type fictional location
type collectable
action count
action filter_type
action find
entity Orthanc
relation present in work
type fictional location
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?h ) AS ?x ) WHERE { ?k property:present_in_work ?h . ?k rdf:type ontology:fictional_location . ?h rdf:type ontology:collectable } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { resource:Orthanc property:present_in_work ?s . ?s rdf:type ontology:fictional_location } } . FILTER ( ?x > ?b ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q27334283
P1441
Q2342494 Q3895768
USER
And also tell me about Route 118?
(c(Q3895768),P1441,c(Q2342494))
action greater
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
action count
action filter_type
action find
entity Q27334283
relation P1441
type Q3895768
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q27334283 property:P1441 ?w . ?w rdf:type ontology:Q3895768 } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:P1441 ?l . ?n rdf:type ontology:Q3895768 . ?l rdf:type ontology:Q2342494 } GROUP BY ?n } }
Route 118
action greater
action find_tuple_counts
relation present in work
type fictional location
type collectable
action count
action filter_type
action find
entity Route 118
relation present in work
type fictional location
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Route_118 property:present_in_work ?w . ?w rdf:type ontology:fictional_location } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:present_in_work ?l . ?n rdf:type ontology:fictional_location . ?l rdf:type ontology:collectable } GROUP BY ?n } }
[]
collectable fictional location
Q202886 Q2997950 Q218728
SYSTEM
Mordor, Waterdeep, Shire
Q4535333 Q368572 Q5031960 Q9274482 Q1234628 Q1772976 Q923051 Q259410 Q5479343 Q3236023 Q8240859 Q3078960 Q11903265 Q11908154 Q19595262 Q717079 Q5820519 Q2014805 Q2722222 Q2193285 Q5815259 Q947309 Q6150892 Q2793775 Q13586984 Q218728 Q843151 Q16481554 Q3751838 Q5770908 Q2031367 Q20791988 Q7903141 Q2288937 Q12902678 Q6675253 Q3370353 Q2337419 Q1098873 Q1417506 Q202886 Q3299764 Q308659 Q14088252 Q16540960 Q1877267 Q3402263 Q11800584 Q2603177 Q20085723 Q14752002 Q1961610 Q1273975 Q2634165 Q898585 Q3511866 Q1781719 Q1975407 Q46289 Q9311957 Q14834627 Q3564892 Q1698465 Q2068808 Q3513524 Q18030394 Q2997950 Q19414239 Q3591950 Q632806 Q1291432 Q6470774 Q18367086 Q7887172 Q3647114 Q3482551 Q5318794 Q22011225 Q19595301
(c(Q3895768),P1441,c(Q2342494))
action greater
action find_tuple_counts
relation P1441
type Q3895768
type Q2342494
action count
action filter_type
action find
entity Q27334283
relation P1441
type Q3895768
[ANSWERS]
[{'concept': 'Q3895768'}, 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q27334283 property:P1441 ?w . ?w rdf:type ontology:Q3895768 } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:P1441 ?l . ?n rdf:type ontology:Q3895768 . ?l rdf:type ontology:Q2342494 } GROUP BY ?n } }
Yuryatin Valinor Candlekeep Gont Angband Tol Eressëa Brobdingnag Lagado Hill of Guard Dalelands Balnibarbi Formenos Hornburg Baratària Lesser Cloud Isengard Eithel Ivrin Dorthonion Meduseld Amon Lhaw Durthang Umbar Towers of the Teeth Shell Cottage Luskan Shire Barad-dûr Galma Rammas Echor Minas Tirith citadel Baldur's Gate Kharé Chetwood Brethil Zembla Looking-Glass Land Eithel Sirion Eurasia Andúnië Fangorn Mordor Sodor Lothlórien Himring Dor-Cúarthol Morrowland Wonderland Last Bridge Dunharrow Tashbaan nation of Nineteen Eighty-Four Emerald City Eastasia Dor-lómin Isla Nublar T'u Lung Orthanc San Lorenzo Mirkwood Roke Treasure Island Wa Aman Utumno Tabot New New York Waterdeep Tol Sirion Evermeet Cair Andros Oceania Chamber of Mazarbul Woody End Sword Coast Barad Eithel Shou Lung Dylath-Leen High Council Tower Groasnachek
Mordor Waterdeep Shire
action greater
action find_tuple_counts
relation present in work
type fictional location
type collectable
action count
action filter_type
action find
entity Route 118
relation present in work
type fictional location
[{'concept': 'fictional location'}, 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Route_118 property:present_in_work ?w . ?w rdf:type ontology:fictional_location } } . FILTER ( ?h > ?k ) . { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?h ) WHERE { ?n property:present_in_work ?l . ?n rdf:type ontology:fictional_location . ?l rdf:type ontology:collectable } GROUP BY ?n } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1441
Q11028 Q2342494
USER
How many information and collectables are that fictional location present in ?
(Q202886,P1441,c(Q11028)) (Q202886,P1441,c(Q2342494)) (Q202886,P1441,c(Q11028)) (Q202886,P1441,c(Q2342494)) (Q2997950,P1441,c(Q11028)) (Q2997950,P1441,c(Q2342494)) (Q218728,P1441,c(Q11028)) (Q218728,P1441,c(Q2342494))
['Q202886', 'P1441', {'concept': 'Q11028'}] ['Q202886', 'P1441', {'concept': 'Q2342494'}] ['Q202886', 'P1441', {'concept': 'Q11028'}] ['Q202886', 'P1441', {'concept': 'Q2342494'}] ['Q2997950', 'P1441', {'concept': 'Q11028'}] ['Q2997950', 'P1441', {'concept': 'Q2342494'}] ['Q218728', 'P1441', {'concept': 'Q11028'}] ['Q218728', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q202886 property:P1441 ?z } UNION { resource:Q202886 property:P1441 ?y } UNION { resource:Q202886 property:P1441 ?z } UNION { resource:Q202886 property:P1441 ?y } UNION { resource:Q2997950 property:P1441 ?z } UNION { resource:Q2997950 property:P1441 ?y } UNION { resource:Q18331631 property:P1441 ?z } UNION { resource:Q18331631 property:P1441 ?y } } . ?z rdf:type ontology:Q11028 . ?y rdf:type ontology:Q2342494 }
['Mordor', 'present in work', {'concept': 'information'}] ['Mordor', 'present in work', {'concept': 'collectable'}] ['Mordor', 'present in work', {'concept': 'information'}] ['Mordor', 'present in work', {'concept': 'collectable'}] ['Waterdeep', 'present in work', {'concept': 'information'}] ['Waterdeep', 'present in work', {'concept': 'collectable'}] ['Shire', 'present in work', {'concept': 'information'}] ['Shire', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Mordor property:present_in_work ?z } UNION { resource:Mordor property:present_in_work ?y } UNION { resource:Mordor property:present_in_work ?z } UNION { resource:Mordor property:present_in_work ?y } UNION { resource:Waterdeep property:present_in_work ?z } UNION { resource:Waterdeep property:present_in_work ?y } UNION { resource:Shire property:present_in_work ?z } UNION { resource:Shire property:present_in_work ?y } } . ?z rdf:type ontology:information . ?y rdf:type ontology:collectable }
[]
information collectable
Quantitative|Count|Mult. entity type|Clarification
Q202886
SYSTEM
Did you mean Mordor ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q202886 property:P1441 ?z } UNION { resource:Q202886 property:P1441 ?y } UNION { resource:Q202886 property:P1441 ?z } UNION { resource:Q202886 property:P1441 ?y } UNION { resource:Q2997950 property:P1441 ?z } UNION { resource:Q2997950 property:P1441 ?y } UNION { resource:Q18331631 property:P1441 ?z } UNION { resource:Q18331631 property:P1441 ?y } } . ?z rdf:type ontology:Q11028 . ?y rdf:type ontology:Q2342494 }
Did you mean Mordor ?
Mordor
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Mordor property:present_in_work ?z } UNION { resource:Mordor property:present_in_work ?y } UNION { resource:Mordor property:present_in_work ?z } UNION { resource:Mordor property:present_in_work ?y } UNION { resource:Waterdeep property:present_in_work ?z } UNION { resource:Waterdeep property:present_in_work ?y } UNION { resource:Shire property:present_in_work ?z } UNION { resource:Shire property:present_in_work ?y } } . ?z rdf:type ontology:information . ?y rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q202886,P1441,c(Q11028)) (Q202886,P1441,c(Q2342494)) (Q202886,P1441,c(Q11028)) (Q202886,P1441,c(Q2342494)) (Q2997950,P1441,c(Q11028)) (Q2997950,P1441,c(Q2342494)) (Q218728,P1441,c(Q11028)) (Q218728,P1441,c(Q2342494))
['Q202886', 'P1441', {'concept': 'Q11028'}] ['Q202886', 'P1441', {'concept': 'Q2342494'}] ['Q202886', 'P1441', {'concept': 'Q11028'}] ['Q202886', 'P1441', {'concept': 'Q2342494'}] ['Q2997950', 'P1441', {'concept': 'Q11028'}] ['Q2997950', 'P1441', {'concept': 'Q2342494'}] ['Q218728', 'P1441', {'concept': 'Q11028'}] ['Q218728', 'P1441', {'concept': 'Q2342494'}]
['Mordor', 'present in work', {'concept': 'information'}] ['Mordor', 'present in work', {'concept': 'collectable'}] ['Mordor', 'present in work', {'concept': 'information'}] ['Mordor', 'present in work', {'concept': 'collectable'}] ['Waterdeep', 'present in work', {'concept': 'information'}] ['Waterdeep', 'present in work', {'concept': 'collectable'}] ['Shire', 'present in work', {'concept': 'information'}] ['Shire', 'present in work', {'concept': 'collectable'}]
[]
SYSTEM
1 information and 1 collectables
Q331142 Q15228
(Q202886,P1441,c(Q11028)) (Q202886,P1441,c(Q2342494)) (Q202886,P1441,c(Q11028)) (Q202886,P1441,c(Q2342494)) (Q2997950,P1441,c(Q11028)) (Q2997950,P1441,c(Q2342494)) (Q218728,P1441,c(Q11028)) (Q218728,P1441,c(Q2342494))
[ANSWER]
['Q202886', 'P1441', {'concept': 'Q11028'}] ['Q202886', 'P1441', {'concept': 'Q2342494'}] ['Q202886', 'P1441', {'concept': 'Q11028'}] ['Q202886', 'P1441', {'concept': 'Q2342494'}] ['Q2997950', 'P1441', {'concept': 'Q11028'}] ['Q2997950', 'P1441', {'concept': 'Q2342494'}] ['Q218728', 'P1441', {'concept': 'Q11028'}] ['Q218728', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q202886 property:P1441 ?z } UNION { resource:Q202886 property:P1441 ?y } UNION { resource:Q202886 property:P1441 ?z } UNION { resource:Q202886 property:P1441 ?y } UNION { resource:Q2997950 property:P1441 ?z } UNION { resource:Q2997950 property:P1441 ?y } UNION { resource:Q18331631 property:P1441 ?z } UNION { resource:Q18331631 property:P1441 ?y } } . ?z rdf:type ontology:Q11028 . ?y rdf:type ontology:Q2342494 }
Akallabêth The Lord of the Rings
1 information and 1 collectables
['Mordor', 'present in work', {'concept': 'information'}] ['Mordor', 'present in work', {'concept': 'collectable'}] ['Mordor', 'present in work', {'concept': 'information'}] ['Mordor', 'present in work', {'concept': 'collectable'}] ['Waterdeep', 'present in work', {'concept': 'information'}] ['Waterdeep', 'present in work', {'concept': 'collectable'}] ['Shire', 'present in work', {'concept': 'information'}] ['Shire', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Mordor property:present_in_work ?z } UNION { resource:Mordor property:present_in_work ?y } UNION { resource:Mordor property:present_in_work ?z } UNION { resource:Mordor property:present_in_work ?y } UNION { resource:Waterdeep property:present_in_work ?z } UNION { resource:Waterdeep property:present_in_work ?y } UNION { resource:Shire property:present_in_work ?z } UNION { resource:Shire property:present_in_work ?y } } . ?z rdf:type ontology:information . ?y rdf:type ontology:collectable }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q202886
P706
Q3895768
USER
Which fictional location has its location as Mordor ?
(c(Q3895768),P706,Q202886)
action filter_type
action find_reverse
entity Q202886
relation P706
type Q3895768
[{'concept': 'Q3895768'}, 'P706', 'Q202886']
SELECT DISTINCT ?c WHERE { ?c property:P706 resource:Q202886 . ?c rdf:type ontology:Q3895768 }
Mordor
action filter_type
action find_reverse
entity Mordor
relation located on terrain feature
type fictional location
[{'concept': 'fictional location'}, 'located on terrain feature', 'Mordor']
SELECT DISTINCT ?c WHERE { ?c property:located_on_terrain_feature resource:Mordor . ?c rdf:type ontology:fictional_location }
[]
fictional location
Q5748800
SYSTEM
Carach Angren
Q5748800
(c(Q3895768),P706,Q202886)
action filter_type
action find_reverse
entity Q202886
relation P706
type Q3895768
[ANSWER] has its location as Mordor
[{'concept': 'Q3895768'}, 'P706', 'Q202886']
SELECT DISTINCT ?c WHERE { ?c property:P706 resource:Q202886 . ?c rdf:type ontology:Q3895768 }
Carach Angren
Carach Angren has its location as Mordor
Carach Angren
action filter_type
action find_reverse
entity Mordor
relation located on terrain feature
type fictional location
[{'concept': 'fictional location'}, 'located on terrain feature', 'Mordor']
SELECT DISTINCT ?c WHERE { ?c property:located_on_terrain_feature resource:Mordor . ?c rdf:type ontology:fictional_location }
[]