Simple Question (Direct)
Simple Question
Q3226549
P162
Q502895
USER
Which person produced What! No Beer? ?
(Q3226549,P162,c(Q502895))
action filter_type
action find
entity Q3226549
relation P162
type Q502895
['Q3226549', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q3226549 property:P162 ?i }
What! No Beer?
action filter_type
action find
entity What! No Beer?
relation producer
type common name
['What! No Beer?', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:What!_No_Beer? property:producer ?i }
[]
common name
Q507728
SYSTEM
Lawrence Weingarten
Q507728
(Q3226549,P162,c(Q502895))
action filter_type
action find
entity Q3226549
relation P162
type Q502895
The [ANSWER] produced What! No Beer
['Q3226549', 'P162', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . resource:Q3226549 property:P162 ?i }
Lawrence Weingarten
The Lawrence Weingarten produced What! No Beer
Lawrence Weingarten
action filter_type
action find
entity What! No Beer?
relation producer
type common name
['What! No Beer?', 'producer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . resource:What!_No_Beer? property:producer ?i }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q507728
P57
Q838948
USER
Which works of art are that person a director of ?
(c(Q838948),P57,Q507728)
action filter_type
action find_reverse
entity Q507728
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q507728']
SELECT DISTINCT ?c WHERE { ?c property:P57 resource:Q507728 . ?c rdf:type ontology:Q838948 }
Lawrence Weingarten
action filter_type
action find_reverse
entity Lawrence Weingarten
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Lawrence Weingarten']
SELECT DISTINCT ?c WHERE { ?c property:director resource:Lawrence_Weingarten . ?c rdf:type ontology:work_of_art }
[]
work of art
Q149406 Q7312813
SYSTEM
Rhapsody, Rendezvous
Q149406 Q7312813
(c(Q838948),P57,Q507728)
action filter_type
action find_reverse
entity Q507728
relation P57
type Q838948
[ANSWERS] are that person a director of
[{'concept': 'Q838948'}, 'P57', 'Q507728']
SELECT DISTINCT ?c WHERE { ?c property:P57 resource:Q507728 . ?c rdf:type ontology:Q838948 }
Rhapsody Rendezvous
Rhapsody and Rendezvous are that person a director of
Rhapsody Rendezvous
action filter_type
action find_reverse
entity Lawrence Weingarten
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Lawrence Weingarten']
SELECT DISTINCT ?c WHERE { ?c property:director resource:Lawrence_Weingarten . ?c rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q507728 Q16499670
P106
Q12737077
USER
How many occupations are the job of Lawrence Weingarten or Kaylee Frye ?
(Q507728,P106,c(Q12737077)) (Q16499670,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q507728
relation P106
type Q12737077
action filter_type
action find
entity Q16499670
relation P106
type Q12737077
['Q507728', 'P106', {'concept': 'Q12737077'}] ['Q16499670', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:Q12737077 . resource:Q507728 property:P106 ?q } UNION { resource:Q16499670 property:P106 ?q . ?q rdf:type ontology:Q12737077 } }
Lawrence Weingarten Kaylee Frye
action count
action union
action filter_type
action find
entity Lawrence Weingarten
relation occupation
type occupation
action filter_type
action find
entity Kaylee Frye
relation occupation
type occupation
['Lawrence Weingarten', 'occupation', {'concept': 'occupation'}] ['Kaylee Frye', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:occupation . resource:Lawrence_Weingarten property:occupation ?q } UNION { resource:Kaylee_Frye property:occupation ?q . ?q rdf:type ontology:occupation } }
[]
occupation
SYSTEM
2
Q33999 Q327029
(Q507728,P106,c(Q12737077)) (Q16499670,P106,c(Q12737077))
action count
action union
action filter_type
action find
entity Q507728
relation P106
type Q12737077
action filter_type
action find
entity Q16499670
relation P106
type Q12737077
[ANSWER]
['Q507728', 'P106', {'concept': 'Q12737077'}] ['Q16499670', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:Q12737077 . resource:Q507728 property:P106 ?q } UNION { resource:Q16499670 property:P106 ?q . ?q rdf:type ontology:Q12737077 } }
actor mechanic
2
action count
action union
action filter_type
action find
entity Lawrence Weingarten
relation occupation
type occupation
action filter_type
action find
entity Kaylee Frye
relation occupation
type occupation
['Lawrence Weingarten', 'occupation', {'concept': 'occupation'}] ['Kaylee Frye', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { { ?q rdf:type ontology:occupation . resource:Lawrence_Weingarten property:occupation ?q } UNION { resource:Kaylee_Frye property:occupation ?q . ?q rdf:type ontology:occupation } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q187483
P361
Q838948 Q1190554 Q234460
USER
How many works of art are around the same number of events and texts a component of as Bayeux Tapestry ?
(c(Q1190554)|c(Q234460),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q187483
relation P361
type Q1190554
type Q234460
[[{'concept': 'Q1190554'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:P361 ?j . ?j rdf:type ontology:Q838948 . ?u rdf:type ontology:Q1190554 } UNION { ?u property:P361 ?j . ?j rdf:type ontology:Q838948 . ?u rdf:type ontology:Q234460 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f property:P361 resource:Q187483 . { { ?f rdf:type ontology:Q234460 } UNION { ?f rdf:type ontology:Q1190554 } } } } . FILTER ( ?y = ?c ) }
Bayeux Tapestry
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type event
action find_reverse_tuple_counts
relation part of
type work of art
type text
action count
action filter_multi_types
action find_reverse
entity Bayeux Tapestry
relation part of
type event
type text
[[{'concept': 'event'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:part_of ?j . ?j rdf:type ontology:work_of_art . ?u rdf:type ontology:event } UNION { ?u property:part_of ?j . ?j rdf:type ontology:work_of_art . ?u rdf:type ontology:text } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f property:part_of resource:Bayeux_Tapestry . { { ?f rdf:type ontology:text } UNION { ?f rdf:type ontology:event } } } } . FILTER ( ?y = ?c ) }
[]
work of art event text
SYSTEM
5
Q206400 Q215750 Q187483 Q41567 Q2089457
(c(Q1190554)|c(Q234460),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q187483
relation P361
type Q1190554
type Q234460
[ANSWER]
[[{'concept': 'Q1190554'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:P361 ?j . ?j rdf:type ontology:Q838948 . ?u rdf:type ontology:Q1190554 } UNION { ?u property:P361 ?j . ?j rdf:type ontology:Q838948 . ?u rdf:type ontology:Q234460 } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f property:P361 resource:Q187483 . { { ?f rdf:type ontology:Q234460 } UNION { ?f rdf:type ontology:Q1190554 } } } } . FILTER ( ?y = ?c ) }
The Merchant of Venice Julius Caesar Bayeux Tapestry Hamlet Cold War
5
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type event
action find_reverse_tuple_counts
relation part of
type work of art
type text
action count
action filter_multi_types
action find_reverse
entity Bayeux Tapestry
relation part of
type event
type text
[[{'concept': 'event'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?w ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?u ) AS ?y ) WHERE { { ?u property:part_of ?j . ?j rdf:type ontology:work_of_art . ?u rdf:type ontology:event } UNION { ?u property:part_of ?j . ?j rdf:type ontology:work_of_art . ?u rdf:type ontology:text } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?c ) WHERE { ?f property:part_of resource:Bayeux_Tapestry . { { ?f rdf:type ontology:text } UNION { ?f rdf:type ontology:event } } } } . FILTER ( ?y = ?c ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1534737
P361
Q838948 Q1190554 Q234460
USER
And what about Life?
(c(Q1190554)|c(Q234460),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q1534737
relation P361
type Q1190554
type Q234460
[[{'concept': 'Q1190554'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { { ?e property:P361 ?h . ?e rdf:type ontology:Q1190554 . ?h rdf:type ontology:Q838948 } UNION { ?e property:P361 ?h . ?e rdf:type ontology:Q234460 . ?h rdf:type ontology:Q838948 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:P361 resource:Q1534737 . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1190554 ) ( ontology:Q234460 ) } } } } . FILTER ( ?k = ?t ) }
Life
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type event
action find_reverse_tuple_counts
relation part of
type work of art
type text
action count
action filter_multi_types
action find_reverse
entity Life
relation part of
type event
type text
[[{'concept': 'event'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { { ?e property:part_of ?h . ?e rdf:type ontology:event . ?h rdf:type ontology:work_of_art } UNION { ?e property:part_of ?h . ?e rdf:type ontology:text . ?h rdf:type ontology:work_of_art } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:part_of resource:Life . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:event ) ( ontology:text ) } } } } . FILTER ( ?k = ?t ) }
[]
work of art event text
SYSTEM
123
Q2312028 Q1762957 Q5723375 Q3415280 Q4143086 Q127367 Q22260775 Q193066 Q15624215 Q2364709 Q7719555 Q372959 Q102438 Q10371896 Q18547944 Q6503493 Q3907523 Q3907489 Q17275612 Q6675667 Q552002 Q19393199 Q10550583 Q934970 Q1209853 Q18609716 Q284184 Q16161848 Q734834 Q222867 Q4660040 Q495954 Q733065 Q747847 Q977372 Q161687 Q1534737 Q4656518 Q1411766 Q205028 Q1623056 Q1760893 Q753449 Q4135545 Q314003 Q4110177 Q1356770 Q3193421 Q16741153 Q332368 Q3983379 Q478748 Q1195466 Q21129836 Q21129837 Q2003287 Q1752478 Q174811 Q945138 Q6519361 Q874496 Q475476 Q103569 Q976149 Q3907478 Q1988321 Q18577910 Q3428050 Q3346699 Q472359 Q971109 Q1360347 Q632753 Q60072 Q489772 Q7572454 Q3747490 Q1270166 Q3395799 Q7451782 Q463313 Q18217301 Q232009 Q309153 Q2905386 Q165325 Q2626332 Q7338317 Q15057808 Q22527805 Q203443 Q201022 Q213053 Q3907484 Q4680630 Q3907512 Q2661437 Q79218 Q1125687 Q20857440 Q24980 Q283134 Q93184 Q24568939 Q7203413 Q16980242 Q1230318 Q378838 Q928019 Q152185 Q2405799 Q281465 Q3907505 Q164804 Q16156301 Q3992615 Q1297233 Q482994 Q3087894 Q21340348 Q7600677 Q2467518 Q10512738
(c(Q1190554)|c(Q234460),P361,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P361
type Q838948
type Q1190554
action find_reverse_tuple_counts
relation P361
type Q838948
type Q234460
action count
action filter_multi_types
action find_reverse
entity Q1534737
relation P361
type Q1190554
type Q234460
[ANSWER]
[[{'concept': 'Q1190554'}, {'concept': 'Q234460'}], 'P361', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { { ?e property:P361 ?h . ?e rdf:type ontology:Q1190554 . ?h rdf:type ontology:Q838948 } UNION { ?e property:P361 ?h . ?e rdf:type ontology:Q234460 . ?h rdf:type ontology:Q838948 } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:P361 resource:Q1534737 . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1190554 ) ( ontology:Q234460 ) } } } } . FILTER ( ?k = ?t ) }
Star Spangled Rhythm Release the Prisoners to Spring Tales of an Island Dangerous Moonlight Ride The Lord of the Rings: The Fellowship of the Ring Sonar Kella Breakfast at Tiffany's Lucy Alice Comedies The Bowman and The Spearman The Towering Inferno Harry Potter and the Philosopher's Stone Sing, Baby, Sing The Martian Law of the Sea polyptych of Saint Augustine Assumption Le Tour de France dans les Pyrénées Looney Tunes: Unleashed Ro.Go.Pa.G. Life of Humanity Kurt Olsson – filmen om mitt liv som mig själv Le Roi et l'oiseau Dick Tracy Scenes from the Life of the Virgin Ra.One The Arts of War and The Arts of Peace Ghent Altarpiece 2 Fast 2 Furious A Texas Trilogy Henry V Dabangg New Orleans New York Stories Harry Potter and the Half-Blood Prince Life A Divine Double Feature predella Iron Man 2 The Fighting Temptations Roseanna Christine Henry IV (play) Stolpersteine A Night Before Christmas Heroon Karl Liebknecht 3x3D A View to a Kill Ten Minutes Older: The Trumpet The Holiday The Man on the Roof The Arts of War The Arts of Peace The Gates of Hell Slap Shot Up Bedknobs and Broomsticks Leif The Poseidon Adventure diptych Alien Laura Roverella Altarpiece Seven Sorrows Polyptych George VI and Queen Elizabeth Memorial Christ with singing and music-making Angels Nymphomaniac El Cantante Inferno Hunnestad Monument Babes in Arms The Sound of Music Seven Wonders of the Ancient World Space Pirate Captain Harlock baptismal font of the Siena Baptistry Danish Crown Regalia Polyptych of Certosa di Pavia Separate Tables Romeo + Juliet Rizal Monument Harry Potter and the Deathly Hallows – Part 2 Singin' in the Rain Black Jack Kill Bill Volume 1 A Breed Apart Rivers and Tides Monument to the Republic Chatsworth Apollo headstone folk dance Superman 1472 Polyptych Sculptural Ensemble of Constantin Brâncuși at Târgu Jiu Porto San Giorgio Polyptych The Witches triptych Teheran 43 Henry VI (play) Part 1-3 Monty Python's The Meaning of Life Supergirl drawing Meditation Playing for Keeps Arabian Nights Carefree The Oldest Profession Kill Bill Volume 2 The Legend of Lucy Keyes DC Universe Animated Original Movies Albert Memorial Montefiore dell'Aso Polyptych Underworld Medals by Pisanello Tomb of Giuliano de' Medici, Duke of Nemours Ferdinand the Bull album Parthenon Frieze Madonna and Child, Saints Francis, John the Baptist, John the Evangelist and Anthony of Padua computer graphics Visions of the Hereafter Göta kanal eller Vem drog ur proppen?
123
action count
action approx
action union
action find_reverse_tuple_counts
relation part of
type work of art
type event
action find_reverse_tuple_counts
relation part of
type work of art
type text
action count
action filter_multi_types
action find_reverse
entity Life
relation part of
type event
type text
[[{'concept': 'event'}, {'concept': 'text'}], 'part of', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?b ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) ?h WHERE { { ?e property:part_of ?h . ?e rdf:type ontology:event . ?h rdf:type ontology:work_of_art } UNION { ?e property:part_of ?h . ?e rdf:type ontology:text . ?h rdf:type ontology:work_of_art } } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?t ) WHERE { ?w property:part_of resource:Life . { ?w rdf:type ?o . VALUES ( ?o ) { ( ontology:event ) ( ontology:text ) } } } } . FILTER ( ?k = ?t ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q838948 Q15709879 Q11060274
USER
How many works of art are depicted in around 1 artwork series and prints ?
(c(Q15709879)|c(Q11060274),P180,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q838948
type Q11060274
value 1
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?c ) WHERE { { ?m property:P180 ?e . ?e rdf:type ontology:Q838948 . ?m rdf:type ontology:Q15709879 } UNION { ?m property:P180 ?e . ?e rdf:type ontology:Q838948 . ?m rdf:type ontology:Q11060274 } } GROUP BY ?e } . FILTER ( ?c = 1 ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type artwork series
action find_reverse_tuple_counts
relation depicts
type work of art
type print
value 1
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?c ) WHERE { { ?m property:depicts ?e . ?e rdf:type ontology:work_of_art . ?m rdf:type ontology:artwork_series } UNION { ?m property:depicts ?e . ?e rdf:type ontology:work_of_art . ?m rdf:type ontology:print } } GROUP BY ?e } . FILTER ( ?c = 1 ) }
[]
work of art artwork series print
SYSTEM
21
Q143912 Q766487 Q215194 Q2439030 Q267971 Q17305006 Q185382 Q826635 Q2070542 Q733893 Q185392 Q619135 Q848790 Q907387 Q3143107 Q374591 Q945850 Q1989744 Q465762 Q7539835 Q208440
(c(Q15709879)|c(Q11060274),P180,c(Q838948))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q838948
type Q15709879
action find_reverse_tuple_counts
relation P180
type Q838948
type Q11060274
value 1
[ANSWER]
[[{'concept': 'Q15709879'}, {'concept': 'Q11060274'}], 'P180', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?c ) WHERE { { ?m property:P180 ?e . ?e rdf:type ontology:Q838948 . ?m rdf:type ontology:Q15709879 } UNION { ?m property:P180 ?e . ?e rdf:type ontology:Q838948 . ?m rdf:type ontology:Q11060274 } } GROUP BY ?e } . FILTER ( ?c = 1 ) }
triumphal arch David gargoyle St. Peter's Baldacchino Triton Fountain Galatea Trevi Fountain Elephant and Obelisk Hermes Chair of Saint Peter Borghese Gladiator Apollo Belvedere Dying Gaul Equestrian Statue of Marcus Aurelius Humains Farnese Hercules Apollo and Daphne Moses Laocoön and His Sons Sleeping Ariadne chess piece
21
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type work of art
type artwork series
action find_reverse_tuple_counts
relation depicts
type work of art
type print
value 1
[[{'concept': 'artwork series'}, {'concept': 'print'}], 'depicts', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?x ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?m ) AS ?c ) WHERE { { ?m property:depicts ?e . ?e rdf:type ontology:work_of_art . ?m rdf:type ontology:artwork_series } UNION { ?m property:depicts ?e . ?e rdf:type ontology:work_of_art . ?m rdf:type ontology:print } } GROUP BY ?e } . FILTER ( ?c = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2866573 Q149406
P495
Q15617994
USER
Which administrative territories are the countries of origin of Rhapsody or Ashpazbashi ?
OR((Q149406,P495,c(Q15617994)), (Q2866573,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q149406
relation P495
action find
entity Q2866573
relation P495
type Q15617994
{'OR': [['Q149406', 'P495', {'concept': 'Q15617994'}], ['Q2866573', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:P495 ?a . VALUES ( ?v ) { ( resource:Q149406 ) ( resource:Q2866573 ) } } . ?a rdf:type ontology:Q15617994 }
Ashpazbashi Rhapsody
action filter_type
action union
action find
entity Rhapsody
relation country of origin
action find
entity Ashpazbashi
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Rhapsody', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Ashpazbashi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:country_of_origin ?a . VALUES ( ?v ) { ( resource:Rhapsody ) ( resource:Ashpazbashi ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q794
SYSTEM
United States of America, Iran
Q30 Q794
OR((Q149406,P495,c(Q15617994)), (Q2866573,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q149406
relation P495
action find
entity Q2866573
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Rhapsody or Ashpazbashi
{'OR': [['Q149406', 'P495', {'concept': 'Q15617994'}], ['Q2866573', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:P495 ?a . VALUES ( ?v ) { ( resource:Q149406 ) ( resource:Q2866573 ) } } . ?a rdf:type ontology:Q15617994 }
United States of America Iran
United States of America and Iran are the countries of origin of Rhapsody or Ashpazbashi
United States of America Iran
action filter_type
action union
action find
entity Rhapsody
relation country of origin
action find
entity Ashpazbashi
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Rhapsody', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Ashpazbashi', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?v property:country_of_origin ?a . VALUES ( ?v ) { ( resource:Rhapsody ) ( resource:Ashpazbashi ) } } . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1009
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with greater number of administrative territories than Cameroon ?
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1009
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?c ) WHERE { ?n property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Q1009 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } }
Cameroon
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cameroon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?c ) WHERE { ?n property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Cameroon property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
109
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q736 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q1049 Q189 Q843 Q842 Q184 Q1029 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1033 Q191 Q962 Q298 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q833 Q977 Q34020 Q574 Q79 Q77 Q858 Q878 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1009
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?c ) WHERE { ?n property:P530 ?l . ?l rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } GROUP BY ?n } . FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Q1009 property:P530 ?k . ?k rdf:type ontology:Q15617994 } } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Sudan Iceland Pakistan Oman Belarus Mozambique Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Nigeria Estonia Benin Chile Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Malaysia Djibouti Niue East Timor Egypt Uruguay Syria United Arab Emirates Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
109
action count
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cameroon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?i ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?c ) WHERE { ?n property:diplomatic_relation ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . FILTER ( ?c > ?t ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Cameroon property:diplomatic_relation ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1009
P610
Q14524493
USER
Which is the zenith of that administrative territory ?
action filter_type
action find
entity Q1009
relation P610
type Q14524493
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q14524493 . resource:Q1009 property:P610 ?x }
Cameroon
action filter_type
action find
entity Cameroon
relation highest point
type terrain
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:terrain . resource:Cameroon property:highest_point ?x }
[]
terrain
Q190562
SYSTEM
Mount Cameroon
Q190562
action filter_type
action find
entity Q1009
relation P610
type Q14524493
The zenith of that administrative territory is [ANSWER]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q14524493 . resource:Q1009 property:P610 ?x }
Mount Cameroon
The zenith of that administrative territory is Mount Cameroon
Mount Cameroon
action filter_type
action find
entity Cameroon
relation highest point
type terrain
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:terrain . resource:Cameroon property:highest_point ?x }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q27267334
P3173
Q14524493 Q811979
USER
How many architectural structures can offer views of more number of terrains than Dewey Point ?
(c(Q811979),P3173,c(Q14524493))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
action count
action filter_type
action find
entity Q27267334
relation P3173
type Q811979
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f rdf:type ontology:Q811979 . ?r rdf:type ontology:Q14524493 . ?f property:P3173 ?r } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q27267334 property:P3173 ?h . ?h rdf:type ontology:Q811979 } } . FILTER ( ?z > ?i ) }
Dewey Point
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
action count
action filter_type
action find
entity Dewey Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f rdf:type ontology:architectural_structure . ?r rdf:type ontology:terrain . ?f property:offers_view_on ?r } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Dewey_Point property:offers_view_on ?h . ?h rdf:type ontology:architectural_structure } } . FILTER ( ?z > ?i ) }
[]
terrain architectural structure
SYSTEM
3
Q3108318 Q7088437 Q2433474
(c(Q811979),P3173,c(Q14524493))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
action count
action filter_type
action find
entity Q27267334
relation P3173
type Q811979
[ANSWER]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f rdf:type ontology:Q811979 . ?r rdf:type ontology:Q14524493 . ?f property:P3173 ?r } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Q27267334 property:P3173 ?h . ?h rdf:type ontology:Q811979 } } . FILTER ( ?z > ?i ) }
Glacier Point Olmsted Point Tunnel View
3
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
action count
action filter_type
action find
entity Dewey Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?t ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?z ) WHERE { ?f rdf:type ontology:architectural_structure . ?r rdf:type ontology:terrain . ?f property:offers_view_on ?r } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?i ) WHERE { resource:Dewey_Point property:offers_view_on ?h . ?h rdf:type ontology:architectural_structure } } . FILTER ( ?z > ?i ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q7675044
P3173
Q14524493 Q811979
USER
And how about Taft Point?
(c(Q811979),P3173,c(Q14524493))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
action count
action filter_type
action find
entity Q7675044
relation P3173
type Q811979
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?y ) WHERE { ?f property:P3173 ?r . ?f rdf:type ontology:Q811979 . ?r rdf:type ontology:Q14524493 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q7675044 property:P3173 ?q . ?q rdf:type ontology:Q811979 } } . FILTER ( ?y > ?e ) }
Taft Point
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
action count
action filter_type
action find
entity Taft Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?y ) WHERE { ?f property:offers_view_on ?r . ?f rdf:type ontology:architectural_structure . ?r rdf:type ontology:terrain } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Taft_Point property:offers_view_on ?q . ?q rdf:type ontology:architectural_structure } } . FILTER ( ?y > ?e ) }
[]
terrain architectural structure
SYSTEM
6
Q3367142 Q3108318 Q7088437 Q26196531 Q27267334 Q2433474
(c(Q811979),P3173,c(Q14524493))
action count
action greater
action find_tuple_counts
relation P3173
type Q811979
type Q14524493
action count
action filter_type
action find
entity Q7675044
relation P3173
type Q811979
[ANSWER]
[{'concept': 'Q811979'}, 'P3173', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?y ) WHERE { ?f property:P3173 ?r . ?f rdf:type ontology:Q811979 . ?r rdf:type ontology:Q14524493 } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Q7675044 property:P3173 ?q . ?q rdf:type ontology:Q811979 } } . FILTER ( ?y > ?e ) }
Pas de Bellecombe Glacier Point Olmsted Point Washburn Point Dewey Point Tunnel View
6
action count
action greater
action find_tuple_counts
relation offers view on
type architectural structure
type terrain
action count
action filter_type
action find
entity Taft Point
relation offers view on
type architectural structure
[{'concept': 'architectural structure'}, 'offers view on', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?r ) AS ?y ) WHERE { ?f property:offers_view_on ?r . ?f rdf:type ontology:architectural_structure . ?r rdf:type ontology:terrain } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?e ) WHERE { resource:Taft_Point property:offers_view_on ?q . ?q rdf:type ontology:architectural_structure } } . FILTER ( ?y > ?e ) }
[]