Simple Question (Direct)
Simple Question
Q15894174
P58
Q502895
USER
Which person wrote the script for Wrong Cops ?
(Q15894174,P58,c(Q502895))
action filter_type
action find
entity Q15894174
relation P58
type Q502895
['Q15894174', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q15894174 property:P58 ?o }
Wrong Cops
action filter_type
action find
entity Wrong Cops
relation screenwriter
type common name
['Wrong Cops', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Wrong_Cops property:screenwriter ?o }
[]
common name
Q453691
SYSTEM
Mr. Oizo
Q453691
(Q15894174,P58,c(Q502895))
action filter_type
action find
entity Q15894174
relation P58
type Q502895
[ANSWER] wrote the script for Wrong Cops
['Q15894174', 'P58', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q502895 . resource:Q15894174 property:P58 ?o }
Mr. Oizo
Mr. Oizo wrote the script for Wrong Cops
Mr. Oizo
action filter_type
action find
entity Wrong Cops
relation screenwriter
type common name
['Wrong Cops', 'screenwriter', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:common_name . resource:Wrong_Cops property:screenwriter ?o }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q453691
P136
Q151885
USER
What is the genre of that person ?
(Q453691,P136,c(Q151885))
action filter_type
action find
entity Q453691
relation P136
type Q151885
['Q453691', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q453691 property:P136 ?b . ?b rdf:type ontology:Q151885 }
Mr. Oizo
action filter_type
action find
entity Mr. Oizo
relation genre
type concept
['Mr. Oizo', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Mr._Oizo property:genre ?b . ?b rdf:type ontology:concept }
[]
concept
Q217597
SYSTEM
electro
Q217597
(Q453691,P136,c(Q151885))
action filter_type
action find
entity Q453691
relation P136
type Q151885
The genre of that person is an [ANSWER]
['Q453691', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?b WHERE { resource:Q453691 property:P136 ?b . ?b rdf:type ontology:Q151885 }
electro
The genre of that person is an electro
electro
action filter_type
action find
entity Mr. Oizo
relation genre
type concept
['Mr. Oizo', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?b WHERE { resource:Mr._Oizo property:genre ?b . ?b rdf:type ontology:concept }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q453691
P57
Q838948
USER
How many works of art are Mr. Oizo a director of ?
(c(Q838948),P57,Q453691)
action count
action filter_type
action find_reverse
entity Q453691
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q453691']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P57 resource:Q453691 . ?q rdf:type ontology:Q838948 }
Mr. Oizo
action count
action filter_type
action find_reverse
entity Mr. Oizo
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Mr. Oizo']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:director resource:Mr._Oizo . ?q rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
4
Q15894174 Q129874 Q18434835 Q2171533
(c(Q838948),P57,Q453691)
action count
action filter_type
action find_reverse
entity Q453691
relation P57
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P57', 'Q453691']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:P57 resource:Q453691 . ?q rdf:type ontology:Q838948 }
Wrong Cops Wrong Reality Rubber
4
action count
action filter_type
action find_reverse
entity Mr. Oizo
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Mr. Oizo']
SELECT DISTINCT ( COUNT ( ?q ) AS ?y ) WHERE { ?q property:director resource:Mr._Oizo . ?q rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q555092
P57
Q838948
USER
And how about Joseph Kane?
(c(Q838948),P57,Q555092)
action count
action filter_type
action find_reverse
entity Q555092
relation P57
type Q838948
[{'concept': 'Q838948'}, 'P57', 'Q555092']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:Q838948 . ?t property:P57 resource:Q555092 }
Joseph Kane
action count
action filter_type
action find_reverse
entity Joseph Kane
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Joseph Kane']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:work_of_art . ?t property:director resource:Joseph_Kane }
[]
work of art
SYSTEM
120
Q2846530 Q5619405 Q3794298 Q10856610 Q13423951 Q21527978 Q20814829 Q3535887 Q21528119 Q21527960 Q8058000 Q10730111 Q5151202 Q942224 Q3208717 Q21527762 Q15542790 Q7759413 Q15631430 Q981670 Q7569044 Q7762031 Q3553400 Q3177622 Q6412334 Q5179567 Q1230963 Q6813487 Q5243381 Q5557007 Q5223616 Q6746335 Q6746332 Q3520212 Q21527470 Q7722269 Q10856925 Q7362433 Q7398916 Q10742204 Q1239151 Q5619350 Q3542005 Q5692445 Q4913531 Q6010284 Q6010281 Q7737968 Q6010295 Q9307074 Q8057965 Q15627668 Q7370960 Q4840371 Q7581204 Q4672932 Q7134269 Q11838744 Q7831519 Q3553332 Q7370849 Q7733835 Q15708651 Q21527503 Q7714242 Q7571112 Q15662505 Q9440824 Q15614133 Q2910560 Q5565015 Q7962611 Q7332910 Q5647568 Q12127156 Q20950023 Q7304869 Q3986063 Q10738774 Q16253821 Q9554866 Q7516360 Q15198807 Q7257351 Q518607 Q12127553 Q15699782 Q10855514 Q15621927 Q7750047 Q5578797 Q13677566 Q21531591 Q21869586 Q2693320 Q21647156 Q5506033 Q21647181 Q15614835 Q7754803 Q7561147 Q20022684 Q7754822 Q3349854 Q5312180 Q7352545 Q8054271 Q7494995 Q15661737 Q3209797 Q17033405 Q7561134 Q7641351 Q5151333 Q7776677 Q7717783 Q7728151 Q5148689 Q5692427 Q15627813
(c(Q838948),P57,Q555092)
action count
action filter_type
action find_reverse
entity Q555092
relation P57
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P57', 'Q555092']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:Q838948 . ?t property:P57 resource:Q555092 }
Undersea Kingdom Gunsmoke Ranch Brimstone The Vanishing American Sons of the Pioneers Rags to Riches The Notorious Mr. Monks Fair Wind to Java The Gallant Legion Plainsman and the Lady Young Buffalo Bill Sea of Lost Ships Come On, Rangers Flame of Barbary Coast Dakota In Old Sacramento Hoodlum Empire The Ranger and the Lady San Antone Fighting Coast Guard South of Santa Fe The Sagebrush Troubadour King of the Pecos Jesse James at Bay King of the Cowboys Cowboy and the Senorita Under Western Stars Melody Trail Days of Jesse James Ghost-Town Gold Darkest Africa Man from Music Mountain Man from Cheyenne The Carson City Kid Arson Gang Busters The Cheaters The Last Stagecoach West Romance on the Range Saga of Death Valley Hell's Outpost Thunder Over Arizona Guns and Guitars Tumbling Tumbleweeds Heart of the Rockies Billy the Kid Returns In Old Cheyenne In Old Caliente The Great Train Robbery In Old Monterey Nevada City Young Bill Hickok Ride the Man Down Round-Up Time in Texas Bad Man of Deadwood Springtime in the Rockies Accused of Murder Paradise Express The Lawless Eighties Track of Thunder The Lawless Nineties Rough Riders' Round-up The Fighting Marines The Plunderers Born to Be Wild The Arizona Kid Southward Ho Spoilers of the Forest Sunset on the Desert Rock Island Trail Boots and Saddles Git Along Little Dogies Wall Street Cowboy Ridin' Down the Canyon Hands Across the Border Ride Ranger Ride Wyoming Red River Valley The Border Legion Jubilee Trail Old Los Angeles Idaho Silver Spurs The Savage Horde Public Cowboy No. 1 In Old Santa Fe Smoke in the Wind The Last Bandit The Road to Denver Oh! Susanna The Man from Music Mountain Gold Mine in the Sky Timberjack The Plunderers The Man Who Died Twice The Lonely Trail The Sea Hornet Frontier Pony Express The Vanishing American California Passage The Old Barn Dance Song of Texas Timberjack The Old Corral Oh, Susanna! Duel at Apache Wells Robin Hood of the Pecos Yodelin' Kid from Pine Ridge Sheriff of Tombstone Gunfire at Indian Gap The Maverick Queen Shine On, Harvest Moon Song of Nevada Sunset Serenade Come on, Cowboys The Yellow Rose of Texas The Big Show The Crooked Circle Colorado Heart of the Golden West Woman of the North Country
120
action count
action filter_type
action find_reverse
entity Joseph Kane
relation director
type work of art
[{'concept': 'work of art'}, 'director', 'Joseph Kane']
SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { ?t rdf:type ontology:work_of_art . ?t property:director resource:Joseph_Kane }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P425
Q1047113 Q9332 Q151885
USER
How many concepts do around 1 special fields and behaviors belong to ?
(c(Q151885),P425,c(Q1047113)|c(Q9332))
action count
action approx
action union
action find_tuple_counts
relation P425
type Q151885
type Q1047113
action find_tuple_counts
relation P425
type Q151885
type Q9332
value 1
[{'concept': 'Q151885'}, 'P425', [{'concept': 'Q1047113'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?c ) WHERE { { ?j property:P425 ?r . ?j rdf:type ontology:Q151885 . ?r rdf:type ontology:Q1047113 } UNION { ?j property:P425 ?r . ?j rdf:type ontology:Q151885 . ?r rdf:type ontology:Q9332 } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation field of this occupation
type concept
type special field
action find_tuple_counts
relation field of this occupation
type concept
type behavior
value 1
[{'concept': 'concept'}, 'field of this occupation', [{'concept': 'special field'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?c ) WHERE { { ?j property:field_of_this_occupation ?r . ?j rdf:type ontology:concept . ?r rdf:type ontology:special_field } UNION { ?j property:field_of_this_occupation ?r . ?j rdf:type ontology:concept . ?r rdf:type ontology:behavior } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
[]
special field behavior concept
SYSTEM
21
Q12020057 Q4621445 Q15472169 Q10370560 Q3303297 Q17010072 Q779458 Q23770547 Q2066131 Q3578589 Q455011 Q1413522 Q1714828 Q22082717 Q13472585 Q1344452 Q273283 Q23663603 Q4964182 Q27247215 Q15253558
(c(Q151885),P425,c(Q1047113)|c(Q9332))
action count
action approx
action union
action find_tuple_counts
relation P425
type Q151885
type Q1047113
action find_tuple_counts
relation P425
type Q151885
type Q9332
value 1
[ANSWER]
[{'concept': 'Q151885'}, 'P425', [{'concept': 'Q1047113'}, {'concept': 'Q9332'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?c ) WHERE { { ?j property:P425 ?r . ?j rdf:type ontology:Q151885 . ?r rdf:type ontology:Q1047113 } UNION { ?j property:P425 ?r . ?j rdf:type ontology:Q151885 . ?r rdf:type ontology:Q9332 } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
homeopath vigilante patron of the arts sertanista ironmaster militant ascetic Serologist sportsperson environmentalist Shill impostor hunter eugenicist philanthropist discoverer beggar acupuncturist philosopher confidence trickster activist
21
action count
action approx
action union
action find_tuple_counts
relation field of this occupation
type concept
type special field
action find_tuple_counts
relation field of this occupation
type concept
type behavior
value 1
[{'concept': 'concept'}, 'field of this occupation', [{'concept': 'special field'}, {'concept': 'behavior'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?r ) AS ?c ) WHERE { { ?j property:field_of_this_occupation ?r . ?j rdf:type ontology:concept . ?r rdf:type ontology:special_field } UNION { ?j property:field_of_this_occupation ?r . ?j rdf:type ontology:concept . ?r rdf:type ontology:behavior } } GROUP BY ?j } . FILTER ( ?c = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P138
Q151885 Q2342494
USER
How many collectables are the eponym of exactly 1 concept ?
(c(Q2342494),P138,c(Q151885))
action count
action equal
action find_tuple_counts
relation P138
type Q2342494
type Q151885
value 1
[{'concept': 'Q2342494'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?v ) WHERE { ?n rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q151885 . ?n property:P138 ?i } GROUP BY ?n } . FILTER ( ?v = 1 ) }
action count
action equal
action find_tuple_counts
relation named after
type collectable
type concept
value 1
[{'concept': 'collectable'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?v ) WHERE { ?n rdf:type ontology:collectable . ?i rdf:type ontology:concept . ?n property:named_after ?i } GROUP BY ?n } . FILTER ( ?v = 1 ) }
[]
concept collectable
SYSTEM
1
Q7810862
(c(Q2342494),P138,c(Q151885))
action count
action equal
action find_tuple_counts
relation P138
type Q2342494
type Q151885
value 1
[ANSWER]
[{'concept': 'Q2342494'}, 'P138', {'concept': 'Q151885'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?v ) WHERE { ?n rdf:type ontology:Q2342494 . ?i rdf:type ontology:Q151885 . ?n property:P138 ?i } GROUP BY ?n } . FILTER ( ?v = 1 ) }
To Be or Not to Bop
1
action count
action equal
action find_tuple_counts
relation named after
type collectable
type concept
value 1
[{'concept': 'collectable'}, 'named after', {'concept': 'concept'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?t ) WHERE { { SELECT DISTINCT ?n ( COUNT ( ?i ) AS ?v ) WHERE { ?n rdf:type ontology:collectable . ?i rdf:type ontology:concept . ?n property:named_after ?i } GROUP BY ?n } . FILTER ( ?v = 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P706
Q1048835 Q151885
USER
Which political territories are the location where min number of concepts are located ?
(c(Q151885),P706,Q25228)
action argmin
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
[{'concept': 'Q151885'}, 'P706', 'Q25228']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P706 ?s . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q151885 } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:Q151885 . ?x rdf:type ontology:Q1048835 . ?k property:P706 ?x } GROUP BY ?x } . FILTER ( ?v = ?b ) }
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Anguilla']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:located_on_terrain_feature ?s . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:concept } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:concept . ?x rdf:type ontology:political_territorial_entity . ?k property:located_on_terrain_feature ?x } GROUP BY ?x } . FILTER ( ?v = ?b ) }
[]
political territorial entity concept
Q40 Q5705 Q785
SYSTEM
Austria, Catalonia, Jersey
Q2012050 Q1747689 Q188399 Q785 Q47134 Q13769 Q202023 Q9676 Q10557 Q5705 Q15434 Q7166 Q5783 Q168159 Q80967 Q11266977 Q109128 Q190930 Q100166 Q234 Q40 Q3908 Q23635 Q25228
(c(Q151885),P706,Q25228)
action argmin
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q151885
[ANSWERS] are the location where min number of concepts are located
[{'concept': 'Q151885'}, 'P706', 'Q25228']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:P706 ?s . ?s rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q151885 } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:Q151885 . ?x rdf:type ontology:Q1048835 . ?k property:P706 ?x } GROUP BY ?x } . FILTER ( ?v = ?b ) }
Donetsk Oblast Ancient Rome Central Bohemian Region Jersey Shetland Camiguin Herm Isle of Man Swabia Catalonia Montseny Heilbronn Andalusia Anglesey Outer Hebrides Epirus Gwynedd Vysočina Region Orkney Islands Flemish Region Austria Galicia Bermuda Anguilla
Austria, Catalonia and Jersey are the location where min number of concepts are located
Austria Catalonia Jersey
action argmin
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type concept
[{'concept': 'concept'}, 'located on terrain feature', 'Anguilla']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MIN ( ?u ) AS ?b ) { SELECT DISTINCT ?s ( COUNT ( ?g ) AS ?u ) WHERE { ?g property:located_on_terrain_feature ?s . ?s rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:concept } GROUP BY ?s } } . { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?v ) WHERE { ?k rdf:type ontology:concept . ?x rdf:type ontology:political_territorial_entity . ?k property:located_on_terrain_feature ?x } GROUP BY ?x } . FILTER ( ?v = ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 . ?n property:P530 ?s } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?e ) WHERE { ?c property:P530 ?x . ?x rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } . FILTER ( ?e = ?h ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?s } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?e ) WHERE { ?c property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } . FILTER ( ?e = ?h ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have diplomatic relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1048835 . ?n property:P530 ?s } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?e ) WHERE { ?c property:P530 ?x . ?x rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?c } . FILTER ( ?e = ?h ) }
Australia
Australia have diplomatic relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MAX ( ?o ) AS ?h ) { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?o ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:political_territorial_entity . ?n property:diplomatic_relation ?s } GROUP BY ?n } } . { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?e ) WHERE { ?c property:diplomatic_relation ?x . ?x rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?c } . FILTER ( ?e = ?h ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q270690 Q785
P658 P85
Q7725634
USER
Which literary works are the national anthems of Jersey or were contained in Appetite for Destruction ?
OR((Q785,P85,c(Q7725634)), (Q270690,P658,c(Q7725634)))
action filter_type
action union
action find
entity Q785
relation P85
action find
entity Q270690
relation P658
type Q7725634
{'OR': [['Q785', 'P85', {'concept': 'Q7725634'}], ['Q270690', 'P658', {'concept': 'Q7725634'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q785 property:P85 ?z } UNION { resource:Q270690 property:P658 ?z } } . ?z rdf:type ontology:Q7725634 }
Appetite for Destruction Jersey
action filter_type
action union
action find
entity Jersey
relation anthem
action find
entity Appetite for Destruction
relation tracklist
type literary work
{'OR': [['Jersey', 'anthem', {'concept': 'literary work'}], ['Appetite for Destruction', 'tracklist', {'concept': 'literary work'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jersey property:anthem ?z } UNION { resource:Appetite_for_Destruction property:tracklist ?z } } . ?z rdf:type ontology:literary_work }
[]
literary work
Q4022925 Q40807 Q3620511 Q3655876 Q2468694 Q10342616 Q547570 Q1421773 Q633376
SYSTEM
You're Crazy, God Save the Queen, Anything Goes, Rocket Queen, Mr. Brownstone, Out Ta Get Me, My Michelle, Think About You, It's So Easy
Q4022925 Q40807 Q3620511 Q3655876 Q2468694 Q10342616 Q547570 Q1421773 Q633376
OR((Q785,P85,c(Q7725634)), (Q270690,P658,c(Q7725634)))
action filter_type
action union
action find
entity Q785
relation P85
action find
entity Q270690
relation P658
type Q7725634
[ANSWERS]
{'OR': [['Q785', 'P85', {'concept': 'Q7725634'}], ['Q270690', 'P658', {'concept': 'Q7725634'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q785 property:P85 ?z } UNION { resource:Q270690 property:P658 ?z } } . ?z rdf:type ontology:Q7725634 }
You're Crazy God Save the Queen Anything Goes Rocket Queen Mr. Brownstone Out Ta Get Me My Michelle Think About You It's So Easy
My Michelle, think About You and It's So Easy are the national anthems of Jersey or were contained in Appetite for Destruction
You're Crazy God Save the Queen Anything Goes Rocket Queen Mr. Brownstone Out Ta Get Me My Michelle Think About You It's So Easy
action filter_type
action union
action find
entity Jersey
relation anthem
action find
entity Appetite for Destruction
relation tracklist
type literary work
{'OR': [['Jersey', 'anthem', {'concept': 'literary work'}], ['Appetite for Destruction', 'tracklist', {'concept': 'literary work'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Jersey property:anthem ?z } UNION { resource:Appetite_for_Destruction property:tracklist ?z } } . ?z rdf:type ontology:literary_work }
[]