Simple Question (Direct)
Simple Question
Q359640
P19
Q56061
USER
Where was Stephen Albert born ?
(Q359640,P19,c(Q56061))
action filter_type
action find
entity Q359640
relation P19
type Q56061
['Q359640', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q359640 property:P19 ?r }
Stephen Albert
action filter_type
action find
entity Stephen Albert
relation place of birth
type administrative territorial entity
['Stephen Albert', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Stephen_Albert property:place_of_birth ?r }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q359640,P19,c(Q56061))
action filter_type
action find
entity Q359640
relation P19
type Q56061
Stephen Albert was born in [ANSWER]
['Q359640', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q359640 property:P19 ?r }
New York City
Stephen Albert was born in New York City
New York City
action filter_type
action find
entity Stephen Albert
relation place of birth
type administrative territorial entity
['Stephen Albert', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Stephen_Albert property:place_of_birth ?r }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q359640
P734
Q82799
USER
Which name is associated with Stephen Albert ?
(Q359640,P734,c(Q82799))
action filter_type
action find
entity Q359640
relation P734
type Q82799
['Q359640', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q359640 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Stephen Albert
action filter_type
action find
entity Stephen Albert
relation family name
type name
['Stephen Albert', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Stephen_Albert property:family_name ?t . ?t rdf:type ontology:name }
[]
name
Q10729205
SYSTEM
Albert
Q10729205
(Q359640,P734,c(Q82799))
action filter_type
action find
entity Q359640
relation P734
type Q82799
[ANSWER] is associated with Stephen [ANSWER]
['Q359640', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?t WHERE { resource:Q359640 property:P734 ?t . ?t rdf:type ontology:Q82799 }
Albert
Albert is associated with Stephen Albert
Albert
action filter_type
action find
entity Stephen Albert
relation family name
type name
['Stephen Albert', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?t WHERE { resource:Stephen_Albert property:family_name ?t . ?t rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P163
Q14660
USER
Which flag is associated with New York City ?
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?n WHERE { resource:Q60 property:P163 ?n . ?n rdf:type ontology:Q14660 }
New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?n WHERE { resource:New_York_City property:flag ?n . ?n rdf:type ontology:flag }
[]
flag
Q1414813
SYSTEM
Flag of New York City
Q1414813
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
City [ANSWER] is associated with New York City
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?n WHERE { resource:Q60 property:P163 ?n . ?n rdf:type ontology:Q14660 }
Flag of New York City
City Flag of New York City is associated with New York City
Flag of New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?n WHERE { resource:New_York_City property:flag ?n . ?n rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q60
P190
Q56061
USER
Which administrative territories are twin towns of New York City ?
(Q60,P190,c(Q56061))
action filter_type
action find
entity Q60
relation P190
type Q56061
['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q60 property:P190 ?n . ?n rdf:type ontology:Q56061 }
New York City
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:New_York_City property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2807 Q1781 Q956
SYSTEM
Madrid, Budapest, Beijing
Q3630 Q33935 Q34820 Q34647 Q2807 Q956 Q1781 Q84 Q85 Q1490 Q1218 Q3561 Q51103 Q585
(Q60,P190,c(Q56061))
action filter_type
action find
entity Q60
relation P190
type Q56061
[ANSWERS] are twin towns of New York City
['Q60', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q60 property:P190 ?n . ?n rdf:type ontology:Q56061 }
Jakarta Tel Aviv Santo Domingo Johannesburg Madrid Beijing Budapest London Cairo Tokyo Jerusalem Algiers Cali Oslo
Madrid, Budapest and Beijing are twin towns of New York City
Madrid Budapest Beijing
action filter_type
action find
entity New York City
relation sister city
type administrative territorial entity
['New York City', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:New_York_City property:sister_city ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q79808
Q56061
USER
And what about Constanța?
(Q79808,P190,c(Q56061))
action filter_type
action find
entity Q79808
relation P190
type Q56061
['Q79808', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q79808 property:P190 ?y . ?y rdf:type ontology:Q56061 }
Constanța
action filter_type
action find
entity Constanța
relation sister city
type administrative territorial entity
['Constanța', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Constanța property:sister_city ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686 Q406 Q1874
SYSTEM
Shanghai, Istanbul, Odessa
Q8686 Q14634 Q81882 Q168668 Q1563 Q163490 Q200030 Q15760 Q38511 Q17151 Q160544 Q87 Q1874 Q34370 Q406 Q198989 Q3437
(Q79808,P190,c(Q56061))
action filter_type
action find
entity Q79808
relation P190
type Q56061
[ANSWERS]
['Q79808', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q79808 property:P190 ?y . ?y rdf:type ontology:Q56061 }
Shanghai Makassar Santos Dobrich Havana Sidon Latakia Novorossiysk Turku Thessaloniki Heraklion Alexandria Odessa Rotterdam Istanbul Aktau Perugia
Shanghai Istanbul Odessa
action filter_type
action find
entity Constanța
relation sister city
type administrative territorial entity
['Constanța', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Constanța property:sister_city ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1447 Q8686
P915
Q838948
USER
Which works of art were filmed at Shanghai or Apulia ?
OR((c(Q838948),P915,Q8686), (c(Q838948),P915,Q1447))
action filter_type
action union
action find_reverse
entity Q8686
relation P915
action find_reverse
entity Q1447
relation P915
type Q838948
{'OR': [[{'concept': 'Q838948'}, 'P915', 'Q8686'], [{'concept': 'Q838948'}, 'P915', 'Q1447']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P915 resource:Q1447 } UNION { ?g property:P915 resource:Q8686 } } . ?g rdf:type ontology:Q838948 }
Apulia Shanghai
action filter_type
action union
action find_reverse
entity Shanghai
relation filming location
action find_reverse
entity Apulia
relation filming location
type work of art
{'OR': [[{'concept': 'work of art'}, 'filming location', 'Shanghai'], [{'concept': 'work of art'}, 'filming location', 'Apulia']]}
SELECT DISTINCT ?g WHERE { { { ?g property:filming_location resource:Apulia } UNION { ?g property:filming_location resource:Shanghai } } . ?g rdf:type ontology:work_of_art }
[]
work of art
Q11176909 Q3716128 Q3717620 Q2858977 Q3744754 Q14543185 Q3319990 Q1089373 Q3212325 Q4010268
SYSTEM
Some of them are The Golden Era, Dui Prithibi, E la chiamano estate, April, Children of Hannibal, Tiny Times 2, È stato il figlio, Allonsanfàn, The Raffle, Verso Sud
Q3820065 Q19587078 Q3790561 Q3792931 Q1046790 Q1430245 Q1200637 Q3639427 Q3649482 Q15524981 Q11837540 Q168602 Q17011429 Q470759 Q3778351 Q16510358 Q16619382 Q3998161 Q3716128 Q17163747 Q191100 Q192934 Q18341799 Q3818650 Q2782486 Q11176909 Q15914176 Q685694 Q7317158 Q15922298 Q2486237 Q1636832 Q10792815 Q3819093 Q1120732 Q1089373 Q3819329 Q14476570 Q1582892 Q3829180 Q19009642 Q3283549 Q3822826 Q3824580 Q3907717 Q3598070 Q53719 Q4000910 Q3225893 Q14757451 Q165685 Q288173 Q10959046 Q15524952 Q949632 Q18111858 Q3790606 Q3801259 Q3818613 Q1167120 Q3821860 Q4451329 Q5216112 Q3828733 Q10863988 Q7488409 Q3425363 Q3221129 Q16487844 Q3744754 Q15401947 Q3818525 Q3796243 Q4941 Q1753499 Q15907647 Q2218953 Q3821453 Q17183161 Q1525361 Q3822757 Q4013824 Q2131160 Q1195532 Q990766 Q850155 Q3803149 Q5619360 Q1218250 Q14543185 Q3212325 Q3618041 Q4010268 Q2858977 Q1227508 Q3878627 Q19757672 Q17159271 Q3717620 Q3828453 Q788822 Q17277457 Q15927916 Q3757913 Q3796260 Q1049078 Q3319990 Q3823191 Q14911940 Q1242957
OR((c(Q838948),P915,Q8686), (c(Q838948),P915,Q1447))
action filter_type
action union
action find_reverse
entity Q8686
relation P915
action find_reverse
entity Q1447
relation P915
type Q838948
[ANSWERS] were filmed at Shanghai or Apulia
{'OR': [[{'concept': 'Q838948'}, 'P915', 'Q8686'], [{'concept': 'Q838948'}, 'P915', 'Q1447']]}
SELECT DISTINCT ?g WHERE { { { ?g property:P915 resource:Q1447 } UNION { ?g property:P915 resource:Q8686 } } . ?g rdf:type ontology:Q838948 }
The Cézanne Affair Tale of Tales I basilischi The Profiteer Casanova 70 The Schoolteacher Goes to Boys' High Desiderio White Horses of Summer Cado dalle nubi Tiny Times 3 So Young The Man with the Iron Fists The Monk Kung Fu Hustle Guardians of the Clouds The Cabin Crew A Woman as a Friend Three man and a leg Dui Prithibi The Queens Transformers: Revenge of the Fallen Angels & Demons Five Minutes to Tomorrow L'antimiracolo The Last Tycoon The Golden Era Women Who Flirt Bachna Ae Haseeno Return Ticket Hector and the Search for Happiness Housefull Three Brothers A Wedding Invitation Martino's Summer The Beast in the Heart Allonsanfàn L'infermiera di notte The Silent War The Girl with the Pistol Le vie del Signore sono finite Crazy New Year’s Eve La liceale seduce i professori La liceale al mare con l'amica di papà Our Land Polvere di stelle 20 - Venti Looper Tutto l'amore che c'è Loose Cannons The Stolen Years Love in Disguise Mission: Impossible III Tiny Times Up in the Wind La liceale nella classe dei ripetenti For Love or Money The Knights of the Quest Ciao, Professore! Soul Mate The Gospel According to St. Matthew La compagna di banco Dancers Dangerous Liaisons Le farò da padre Gone with the Bullets Shanghai Calling The Human Cargo La stazione Fasten Your Seatbelts Children of Hannibal The Crossing Love Is Not Perfect The Bride’s Journey Skyfall Donne senza nome Falling Flowers Manual of Love 2 La Bidonata Rise of the Legend I'm Not Scared Cross Shot Violenza al sole Bodyguards and Assassins China Strike Force Alien Terror Il soldato di ventura Islands Guns and Roses Classe mista Tiny Times 2 The Raffle Roaring Years Verso Sud April Young Toscanini Nostra Signora dei Turchi Ip Man 3 The Unbearable Lightness of Inspector Fan E la chiamano estate The Acrobats Her Duckweed Who Is Undercover Legs of Gold The Cardboard Village Flavia the Heretic È stato il figlio La moglie in bianco... l'amante al pepe L'arbitro What a Beautiful Day
The Golden Era, Dui Prithibi, E la chiamano estate, April, Children of Hannibal, Tiny Times 2, È stato il figlio, Allonsanfàn, The Raffle and Verso Sud were filmed at Shanghai or Apulia
The Golden Era Dui Prithibi E la chiamano estate April Children of Hannibal Tiny Times 2 È stato il figlio Allonsanfàn The Raffle Verso Sud
action filter_type
action union
action find_reverse
entity Shanghai
relation filming location
action find_reverse
entity Apulia
relation filming location
type work of art
{'OR': [[{'concept': 'work of art'}, 'filming location', 'Shanghai'], [{'concept': 'work of art'}, 'filming location', 'Apulia']]}
SELECT DISTINCT ?g WHERE { { { ?g property:filming_location resource:Apulia } UNION { ?g property:filming_location resource:Shanghai } } . ?g rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q838948 Q386724
USER
How many works were described in atleast 2 works of art ?
(c(Q386724),P1445,c(Q838948))
action count
action atleast
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 2
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?q ) WHERE { ?s property:P1445 ?k . ?s rdf:type ontology:Q386724 . ?k rdf:type ontology:Q838948 } GROUP BY ?s } . FILTER ( ?q >= 2 ) }
action count
action atleast
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?q ) WHERE { ?s property:fictional_universe_described_in ?k . ?s rdf:type ontology:work . ?k rdf:type ontology:work_of_art } GROUP BY ?s } . FILTER ( ?q >= 2 ) }
[]
work of art work
SYSTEM
1
Q384426
(c(Q386724),P1445,c(Q838948))
action count
action atleast
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 2
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?q ) WHERE { ?s property:P1445 ?k . ?s rdf:type ontology:Q386724 . ?k rdf:type ontology:Q838948 } GROUP BY ?s } . FILTER ( ?q >= 2 ) }
Pirates of the Caribbean
1
action count
action atleast
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?k ) AS ?q ) WHERE { ?s property:fictional_universe_described_in ?k . ?s rdf:type ontology:work . ?k rdf:type ontology:work_of_art } GROUP BY ?s } . FILTER ( ?q >= 2 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P417
Q1509831
USER
What is the name of person who is the patron saint of Madrid ?
(Q2807,P417,c(Q1509831))
action filter_type
action find
entity Q2807
relation P417
type Q1509831
['Q2807', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?p WHERE { resource:Q2807 property:P417 ?p . ?p rdf:type ontology:Q1509831 }
Madrid
action filter_type
action find
entity Madrid
relation patron saint
type titles of Mary
['Madrid', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?p WHERE { resource:Madrid property:patron_saint ?p . ?p rdf:type ontology:titles_of_Mary }
[]
titles of Mary
Q1136827
SYSTEM
Virgin of Almudena
Q1136827
(Q2807,P417,c(Q1509831))
action filter_type
action find
entity Q2807
relation P417
type Q1509831
The name of person is the patron saint of Madrid is the [ANSWER]
['Q2807', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?p WHERE { resource:Q2807 property:P417 ?p . ?p rdf:type ontology:Q1509831 }
Virgin of Almudena
The name of person is the patron saint of Madrid is the Virgin of Almudena
Virgin of Almudena
action filter_type
action find
entity Madrid
relation patron saint
type titles of Mary
['Madrid', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?p WHERE { resource:Madrid property:patron_saint ?p . ?p rdf:type ontology:titles_of_Mary }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q838948 Q386724
USER
Which works are recounted in around 4 works of art ?
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 4
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r = 4 ) . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?r ) WHERE { ?g rdf:type ontology:Q386724 . ?d rdf:type ontology:Q838948 . ?g property:P1445 ?d } GROUP BY ?g } }
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 4
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r = 4 ) . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?r ) WHERE { ?g rdf:type ontology:work . ?d rdf:type ontology:work_of_art . ?g property:fictional_universe_described_in ?d } GROUP BY ?g } }
[]
work of art work
Q384426
SYSTEM
Pirates of the Caribbean
Q384426
(c(Q386724),P1445,c(Q838948))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q838948
value 4
[ANSWER] is recounted in around 4 works of art
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r = 4 ) . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?r ) WHERE { ?g rdf:type ontology:Q386724 . ?d rdf:type ontology:Q838948 . ?g property:P1445 ?d } GROUP BY ?g } }
Pirates of the Caribbean
Pirates of the Caribbean is recounted in around 4 works of art
Pirates of the Caribbean
action approx
action find_tuple_counts
relation fictional universe described in
type work
type work of art
value 4
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?r = 4 ) . { SELECT DISTINCT ?g ( COUNT ( ?d ) AS ?r ) WHERE { ?g rdf:type ontology:work . ?d rdf:type ontology:work_of_art . ?g property:fictional_universe_described_in ?d } GROUP BY ?g } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q384426 Q10350033 Q20198894
P1445
Q838948
USER
Was Pirates of the Caribbean described in Pirates of the Caribbean: Dead Men Tell No Tales and Maquette for "Arbre Cubiste (Cubist Tree)" ?
(Q384426,P1445,Q10350033) (Q384426,P1445,Q20198894)
action is_in
entity Q384426
action intersection
action find_reverse
entity Q10350033
relation P1445
action find_reverse
entity Q20198894
relation P1445
['Q384426', 'P1445', 'Q10350033'] ['Q384426', 'P1445', 'Q20198894']
ASK WHERE { resource:Q384426 property:P1445 resource:Q20198894 . resource:Q384426 property:P1445 resource:Q10350033 }
Pirates of the Caribbean Pirates of the Caribbean: Dead Men Tell No Tales Maquette for "Arbre Cubiste (Cubist Tree)"
action is_in
entity Pirates of the Caribbean
action intersection
action find_reverse
entity Pirates of the Caribbean: Dead Men Tell No Tales
relation fictional universe described in
action find_reverse
entity Maquette for "Arbre Cubiste (Cubist Tree)"
relation fictional universe described in
['Pirates of the Caribbean', 'fictional universe described in', 'Pirates of the Caribbean: Dead Men Tell No Tales'] ['Pirates of the Caribbean', 'fictional universe described in', 'Maquette for "Arbre Cubiste (Cubist Tree)"']
ASK WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in resource:Maquette_for_"Arbre_Cubiste_(Cubist_Tree)" . resource:Pirates_of_the_Caribbean property:fictional_universe_described_in resource:Pirates_of_the_Caribbean:_Dead_Men_Tell_No_Tales }
[]
work of art
SYSTEM
YES and NO respectively
(Q384426,P1445,Q10350033) (Q384426,P1445,Q20198894)
action is_in
entity Q384426
action intersection
action find_reverse
entity Q10350033
relation P1445
action find_reverse
entity Q20198894
relation P1445
[ANSWER]
['Q384426', 'P1445', 'Q10350033'] ['Q384426', 'P1445', 'Q20198894']
ASK WHERE { resource:Q384426 property:P1445 resource:Q20198894 . resource:Q384426 property:P1445 resource:Q10350033 }
YES and NO respectively
action is_in
entity Pirates of the Caribbean
action intersection
action find_reverse
entity Pirates of the Caribbean: Dead Men Tell No Tales
relation fictional universe described in
action find_reverse
entity Maquette for "Arbre Cubiste (Cubist Tree)"
relation fictional universe described in
['Pirates of the Caribbean', 'fictional universe described in', 'Pirates of the Caribbean: Dead Men Tell No Tales'] ['Pirates of the Caribbean', 'fictional universe described in', 'Maquette for "Arbre Cubiste (Cubist Tree)"']
ASK WHERE { resource:Pirates_of_the_Caribbean property:fictional_universe_described_in resource:Maquette_for_"Arbre_Cubiste_(Cubist_Tree)" . resource:Pirates_of_the_Caribbean property:fictional_universe_described_in resource:Pirates_of_the_Caribbean:_Dead_Men_Tell_No_Tales }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2807
P101
Q874405
USER
Which social group works in the domain of Madrid ?
(c(Q874405),P101,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P101
type Q874405
[{'concept': 'Q874405'}, 'P101', 'Q2807']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q2807 . ?d rdf:type ontology:Q874405 }
Madrid
action filter_type
action find_reverse
entity Madrid
relation field of work
type social group
[{'concept': 'social group'}, 'field of work', 'Madrid']
SELECT DISTINCT ?d WHERE { ?d property:field_of_work resource:Madrid . ?d rdf:type ontology:social_group }
[]
social group
Q5918161
SYSTEM
Instituto de Estudios Madrileños
Q5918161
(c(Q874405),P101,Q2807)
action filter_type
action find_reverse
entity Q2807
relation P101
type Q874405
[ANSWER] works in the domain of Madrid
[{'concept': 'Q874405'}, 'P101', 'Q2807']
SELECT DISTINCT ?d WHERE { ?d property:P101 resource:Q2807 . ?d rdf:type ontology:Q874405 }
Instituto de Estudios Madrileños
Instituto de Estudios Madrileños works in the domain of Madrid
Instituto de Estudios Madrileños
action filter_type
action find_reverse
entity Madrid
relation field of work
type social group
[{'concept': 'social group'}, 'field of work', 'Madrid']
SELECT DISTINCT ?d WHERE { ?d property:field_of_work resource:Madrid . ?d rdf:type ontology:social_group }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5918161
P123
Q1002697
USER
Which periodical literature was published by that social group ?
(c(Q1002697),P123,Q5918161)
action filter_type
action find_reverse
entity Q5918161
relation P123
type Q1002697
[{'concept': 'Q1002697'}, 'P123', 'Q5918161']
SELECT DISTINCT ?l WHERE { ?l property:P123 resource:Q5918161 . ?l rdf:type ontology:Q1002697 }
Instituto de Estudios Madrileños
action filter_type
action find_reverse
entity Instituto de Estudios Madrileños
relation publisher
type periodical literature
[{'concept': 'periodical literature'}, 'publisher', 'Instituto de Estudios Madrileños']
SELECT DISTINCT ?l WHERE { ?l property:publisher resource:Instituto_de_Estudios_Madrileños . ?l rdf:type ontology:periodical_literature }
[]
periodical literature
Q24238376
SYSTEM
Anales del Instituto de Estudios Madrileños
Q24238376
(c(Q1002697),P123,Q5918161)
action filter_type
action find_reverse
entity Q5918161
relation P123
type Q1002697
[ANSWER] was published by that social group
[{'concept': 'Q1002697'}, 'P123', 'Q5918161']
SELECT DISTINCT ?l WHERE { ?l property:P123 resource:Q5918161 . ?l rdf:type ontology:Q1002697 }
Anales del Instituto de Estudios Madrileños
Anales del Instituto de Estudios Madrileños was published by that social group
Anales del Instituto de Estudios Madrileños
action filter_type
action find_reverse
entity Instituto de Estudios Madrileños
relation publisher
type periodical literature
[{'concept': 'periodical literature'}, 'publisher', 'Instituto de Estudios Madrileños']
SELECT DISTINCT ?l WHERE { ?l property:publisher resource:Instituto_de_Estudios_Madrileños . ?l rdf:type ontology:periodical_literature }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P291
Q56061 Q1002697
USER
Which administrative territories were max number of periodical literatures issued ?
(c(Q1002697),P291,Q1085)
action argmax
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
[{'concept': 'Q1002697'}, 'P291', 'Q1085']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P291 ?p . ?d rdf:type ontology:Q1002697 . ?p rdf:type ontology:Q56061 } GROUP BY ?p } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:Q1002697 . ?q rdf:type ontology:Q56061 . ?r property:P291 ?q } GROUP BY ?q } } }
action argmax
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'Prague']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:place_of_publication ?p . ?d rdf:type ontology:periodical_literature . ?p rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:periodical_literature . ?q rdf:type ontology:administrative_territorial_entity . ?r property:place_of_publication ?q } GROUP BY ?q } } }
[]
administrative territorial entity periodical literature
Q60
SYSTEM
New York City
Q60
(c(Q1002697),P291,Q1085)
action argmax
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
[ANSWER] was max number of periodical literatures issued
[{'concept': 'Q1002697'}, 'P291', 'Q1085']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:P291 ?p . ?d rdf:type ontology:Q1002697 . ?p rdf:type ontology:Q56061 } GROUP BY ?p } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:Q1002697 . ?q rdf:type ontology:Q56061 . ?r property:P291 ?q } GROUP BY ?q } } }
New York City
New York City was max number of periodical literatures issued
New York City
action argmax
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
[{'concept': 'periodical literature'}, 'place of publication', 'Prague']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?d ) AS ?m ) WHERE { ?d property:place_of_publication ?p . ?d rdf:type ontology:periodical_literature . ?p rdf:type ontology:administrative_territorial_entity } GROUP BY ?p } . FILTER ( ?m = ?a ) . { SELECT DISTINCT ( MAX ( ?v ) AS ?a ) { SELECT DISTINCT ?q ( COUNT ( ?r ) AS ?v ) WHERE { ?r rdf:type ontology:periodical_literature . ?q rdf:type ontology:administrative_territorial_entity . ?r property:place_of_publication ?q } GROUP BY ?q } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P417
Q1445650 Q502895 Q56061
USER
Which administrative territories have max number of holidays or people as their patron saint ?
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?l ) WHERE { { ?x rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 . ?x property:P417 ?t } UNION { ?x property:P417 ?t . ?x rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } } GROUP BY ?x } } . { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?f ) WHERE { { ?v property:P417 ?q . ?q rdf:type ontology:Q1445650 . ?v rdf:type ontology:Q56061 } UNION { ?v property:P417 ?q . ?v rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 } } GROUP BY ?v } . FILTER ( ?f = ?e ) }
action argmax
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?l ) WHERE { { ?x rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday . ?x property:patron_saint ?t } UNION { ?x property:patron_saint ?t . ?x rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } } GROUP BY ?x } } . { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?f ) WHERE { { ?v property:patron_saint ?q . ?q rdf:type ontology:holiday . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?v property:patron_saint ?q . ?v rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?v } . FILTER ( ?f = ?e ) }
[]
holiday common name administrative territorial entity
Q39519 Q220
SYSTEM
Brinzio, Rome
Q39519 Q220
(c(Q56061),P417,c(Q1445650)|c(Q502895))
action argmax
action union
action find_tuple_counts
relation P417
type Q56061
type Q1445650
action find_tuple_counts
relation P417
type Q56061
type Q502895
[ANSWERS] have max number of holidays or people as their patron saint
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q1445650'}, {'concept': 'Q502895'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?l ) WHERE { { ?x rdf:type ontology:Q56061 . ?t rdf:type ontology:Q1445650 . ?x property:P417 ?t } UNION { ?x property:P417 ?t . ?x rdf:type ontology:Q56061 . ?t rdf:type ontology:Q502895 } } GROUP BY ?x } } . { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?f ) WHERE { { ?v property:P417 ?q . ?q rdf:type ontology:Q1445650 . ?v rdf:type ontology:Q56061 } UNION { ?v property:P417 ?q . ?v rdf:type ontology:Q56061 . ?q rdf:type ontology:Q502895 } } GROUP BY ?v } . FILTER ( ?f = ?e ) }
Brinzio Rome
Brinzio and Rome have max number of holidays or people as their patron saint
Brinzio Rome
action argmax
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'holiday'}, {'concept': 'common name'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MAX ( ?l ) AS ?e ) { SELECT DISTINCT ?x ( COUNT ( ?t ) AS ?l ) WHERE { { ?x rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:holiday . ?x property:patron_saint ?t } UNION { ?x property:patron_saint ?t . ?x rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:common_name } } GROUP BY ?x } } . { SELECT DISTINCT ?v ( COUNT ( ?q ) AS ?f ) WHERE { { ?v property:patron_saint ?q . ?q rdf:type ontology:holiday . ?v rdf:type ontology:administrative_territorial_entity } UNION { ?v property:patron_saint ?q . ?v rdf:type ontology:administrative_territorial_entity . ?q rdf:type ontology:common_name } } GROUP BY ?v } . FILTER ( ?f = ?e ) }
[]