Simple Question (Direct)
Simple Question
Q92984
P184
Q502895
USER
Who was the doctoral advisor of Luis von Ahn ?
(Q92984,P184,c(Q502895))
action filter_type
action find
entity Q92984
relation P184
type Q502895
['Q92984', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q92984 property:P184 ?j . ?j rdf:type ontology:Q502895 }
Luis von Ahn
action filter_type
action find
entity Luis von Ahn
relation doctoral advisor
type common name
['Luis von Ahn', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Luis_von_Ahn property:doctoral_advisor ?j . ?j rdf:type ontology:common_name }
[]
common name
Q92626
SYSTEM
Manuel Blum
Q92626
(Q92984,P184,c(Q502895))
action filter_type
action find
entity Q92984
relation P184
type Q502895
The doctoral advisor of Luis von Ahn was later [ANSWER]
['Q92984', 'P184', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { resource:Q92984 property:P184 ?j . ?j rdf:type ontology:Q502895 }
Manuel Blum
The doctoral advisor of Luis von Ahn was later Manuel Blum
Manuel Blum
action filter_type
action find
entity Luis von Ahn
relation doctoral advisor
type common name
['Luis von Ahn', 'doctoral advisor', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { resource:Luis_von_Ahn property:doctoral_advisor ?j . ?j rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q92626
P22
Q502895
USER
Who is the offspring of that one ?
(c(Q502895),P22,Q92626)
action filter_type
action find_reverse
entity Q92626
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q92626']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q92626 . ?w rdf:type ontology:Q502895 }
Manuel Blum
action filter_type
action find_reverse
entity Manuel Blum
relation father
type common name
[{'concept': 'common name'}, 'father', 'Manuel Blum']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Manuel_Blum . ?w rdf:type ontology:common_name }
[]
common name
Q4829472
SYSTEM
Avrim Blum
Q4829472
(c(Q502895),P22,Q92626)
action filter_type
action find_reverse
entity Q92626
relation P22
type Q502895
The offspring of that one is the [ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q92626']
SELECT DISTINCT ?w WHERE { ?w property:P22 resource:Q92626 . ?w rdf:type ontology:Q502895 }
Avrim Blum
The offspring of that one is the Avrim Blum
Avrim Blum
action filter_type
action find_reverse
entity Manuel Blum
relation father
type common name
[{'concept': 'common name'}, 'father', 'Manuel Blum']
SELECT DISTINCT ?w WHERE { ?w property:father resource:Manuel_Blum . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4829472
P40
Q502895
USER
Who have that one as a child ?
(c(Q502895),P40,Q4829472)
action filter_type
action find_reverse
entity Q4829472
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q4829472']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q4829472 . ?l rdf:type ontology:Q502895 }
Avrim Blum
action filter_type
action find_reverse
entity Avrim Blum
relation child
type common name
[{'concept': 'common name'}, 'child', 'Avrim Blum']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Avrim_Blum . ?l rdf:type ontology:common_name }
[]
common name
Q92626 Q93004
SYSTEM
Manuel Blum, Lenore Blum
Q92626 Q93004
(c(Q502895),P40,Q4829472)
action filter_type
action find_reverse
entity Q4829472
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q4829472']
SELECT DISTINCT ?l WHERE { ?l property:P40 resource:Q4829472 . ?l rdf:type ontology:Q502895 }
Manuel Blum Lenore Blum
Manuel Blum and Lenore Blum have that one as a child
Manuel Blum Lenore Blum
action filter_type
action find_reverse
entity Avrim Blum
relation child
type common name
[{'concept': 'common name'}, 'child', 'Avrim Blum']
SELECT DISTINCT ?l WHERE { ?l property:child resource:Avrim_Blum . ?l rdf:type ontology:common_name }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q180098
P725
Q502895 Q838948
USER
How many works of art have been dubbed by less number of people than Ben-Hur ?
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q180098
relation P725
type Q502895
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?v ) WHERE { ?s property:P725 ?f . ?f rdf:type ontology:Q502895 . ?s rdf:type ontology:Q838948 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { resource:Q180098 property:P725 ?b . ?b rdf:type ontology:Q502895 } } . FILTER ( ?v < ?g ) }
Ben-Hur
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity Ben-Hur
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?v ) WHERE { ?s property:voice_actor ?f . ?f rdf:type ontology:common_name . ?s rdf:type ontology:work_of_art } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { resource:Ben-Hur property:voice_actor ?b . ?b rdf:type ontology:common_name } } . FILTER ( ?v < ?g ) }
[]
common name work of art
SYSTEM
5
Q4346544 Q190145 Q4367569 Q4468674 Q4204793
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q180098
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?v ) WHERE { ?s property:P725 ?f . ?f rdf:type ontology:Q502895 . ?s rdf:type ontology:Q838948 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { resource:Q180098 property:P725 ?b . ?b rdf:type ontology:Q502895 } } . FILTER ( ?v < ?g ) }
Passport Spider-Man 2 The Witches Cave To Kill a Dragon History of the Arkanar Massacre
5
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity Ben-Hur
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?j ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?v ) WHERE { ?s property:voice_actor ?f . ?f rdf:type ontology:common_name . ?s rdf:type ontology:work_of_art } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?g ) WHERE { resource:Ben-Hur property:voice_actor ?b . ?b rdf:type ontology:common_name } } . FILTER ( ?v < ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q127367
P725
Q502895 Q838948
USER
And what about The Lord of the Rings: The Fellowship of the Ring?
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q127367
relation P725
type Q502895
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?c ) WHERE { ?p rdf:type ontology:Q838948 . ?u rdf:type ontology:Q502895 . ?p property:P725 ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { resource:Q127367 property:P725 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?c < ?t ) }
The Lord of the Rings: The Fellowship of the Ring
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity The Lord of the Rings: The Fellowship of the Ring
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?c ) WHERE { ?p rdf:type ontology:work_of_art . ?u rdf:type ontology:common_name . ?p property:voice_actor ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { resource:The_Lord_of_the_Rings:_The_Fellowship_of_the_Ring property:voice_actor ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?c < ?t ) }
[]
common name work of art
SYSTEM
64
Q4346544 Q13091172 Q3458494 Q8024145 Q15139235 Q21428001 Q890656 Q834799 Q82579 Q212792 Q190145 Q909318 Q6675708 Q5901134 Q19948770 Q1325217 Q286868 Q1315185 Q1583966 Q25218391 Q777739 Q4942936 Q1572709 Q640695 Q14540226 Q18407657 Q868048 Q615813 Q4367569 Q180098 Q1100231 Q1368693 Q19776571 Q1185099 Q4646903 Q18786473 Q4305149 Q176198 Q25167044 Q567884 Q1196712 Q19776435 Q15627005 Q5237953 Q1309592 Q890665 Q207659 Q1519753 Q641315 Q729809 Q888131 Q1702819 Q4468674 Q318975 Q4204793 Q587921 Q1810461 Q5694508 Q18167809 Q7767682 Q18200409 Q18857408 Q16998034 Q179411
(c(Q838948),P725,c(Q502895))
action count
action less
action find_tuple_counts
relation P725
type Q838948
type Q502895
action count
action filter_type
action find
entity Q127367
relation P725
type Q502895
[ANSWER]
[{'concept': 'Q838948'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?c ) WHERE { ?p rdf:type ontology:Q838948 . ?u rdf:type ontology:Q502895 . ?p property:P725 ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { resource:Q127367 property:P725 ?x . ?x rdf:type ontology:Q502895 } } . FILTER ( ?c < ?t ) }
Passport Big Hero 6 A Tree of Palme Windfall Nobunaga the Fool Riley's First Date? Pokémon Heroes Pokémon: The First Movie: Mewtwo Strikes Back Pokémon 4Ever Bolt Spider-Man 2 Keroro Gunso the Super Movie 3: Keroro vs. Keroro Great Sky Duel Looney Tunes Super Stars' Foghorn Leghorn & Friends: Barnyard Bigmouth Ant-Man From Caligari to Hitler: German Cinema in the Age of the Masses Flubber Noah Steamboy Underdog Exile Ivan Vasilievich: Back to the Future Book Girl Pretty Cure All Stars Metropolis Celestial Wives of the Meadow Mari Captain America: Civil War Pokémon: The Movie 2000: The Power of One Pokémon the Movie: Black—Victini and Reshiram and White—Victini and Zekrom The Witches Cave Ben-Hur Hayate the Combat Butler! Heaven Is a Place on Earth GeGeGe no Kitarō N - The Madness of Reason Star Driver: Kagayaki no Takuto A-Haunting We Will Go Pete's Dragon Mozart and Salieri The Last Unicorn Wreck-It Ralph 2 Another Detective Conan: The Phantom of Baker Street Szenario Fair Play Inazuma Eleven GO vs. Danbōru Senki W Doraemon: Nobita and the Wind Wizard Pokémon 3: The Movie: Spell of the Unown Space Jam Mimino Spirit: Stallion of the Cimarron Bodacious Space Pirates The Wind Rises Secret of the Wings To Kill a Dragon Atlantis: The Lost Empire History of the Arkanar Massacre Garfield: A Tail of Two Kitties Springtime with Roo Heaven's Lost Property the Movie: The Angeloid of Clockwork The Prophet The Swing School A Monster Calls Thou-Vou falakros praktor Monkey Kingdom A Very Merry Pooh Year
64
action count
action less
action find_tuple_counts
relation voice actor
type work of art
type common name
action count
action filter_type
action find
entity The Lord of the Rings: The Fellowship of the Ring
relation voice actor
type common name
[{'concept': 'work of art'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?l ) WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?c ) WHERE { ?p rdf:type ontology:work_of_art . ?u rdf:type ontology:common_name . ?p property:voice_actor ?u } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?t ) WHERE { resource:The_Lord_of_the_Rings:_The_Fellowship_of_the_Ring property:voice_actor ?x . ?x rdf:type ontology:common_name } } . FILTER ( ?c < ?t ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3769234 Q92984
P27
Q15617994
USER
Which administrative territories are Luis von Ahn or Giulia Barone a civilian of ?
OR((Q92984,P27,c(Q15617994)), (Q3769234,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q92984
relation P27
action find
entity Q3769234
relation P27
type Q15617994
{'OR': [['Q92984', 'P27', {'concept': 'Q15617994'}], ['Q3769234', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q92984 property:P27 ?v } UNION { resource:Q3769234 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Giulia Barone Luis von Ahn
action filter_type
action union
action find
entity Luis von Ahn
relation country of citizenship
action find
entity Giulia Barone
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Luis von Ahn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Giulia Barone', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Luis_von_Ahn property:country_of_citizenship ?v } UNION { resource:Giulia_Barone property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q774 Q38
SYSTEM
Guatemala, Italy
Q774 Q38
OR((Q92984,P27,c(Q15617994)), (Q3769234,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q92984
relation P27
action find
entity Q3769234
relation P27
type Q15617994
[ANSWERS] are Luis von Ahn or Giulia Barone a civilian of
{'OR': [['Q92984', 'P27', {'concept': 'Q15617994'}], ['Q3769234', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q92984 property:P27 ?v } UNION { resource:Q3769234 property:P27 ?v } } . ?v rdf:type ontology:Q15617994 }
Guatemala Italy
Guatemala and Italy are Luis von Ahn or Giulia Barone a civilian of
Guatemala Italy
action filter_type
action union
action find
entity Luis von Ahn
relation country of citizenship
action find
entity Giulia Barone
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Luis von Ahn', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Giulia Barone', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Luis_von_Ahn property:country_of_citizenship ?v } UNION { resource:Giulia_Barone property:country_of_citizenship ?v } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?y property:P530 ?g . ?y rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?v = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?y property:diplomatic_relation ?g . ?y rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?v = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] have diplomatic relationships with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?y property:P530 ?g . ?y rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?v = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas have diplomatic relationships with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?g ) AS ?v ) WHERE { ?y property:diplomatic_relation ?g . ?y rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?v = 1 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7989555
P530
Q15617994
USER
Do Westphalia Independent School District have ambassadorial relations with those political territories ?
(Q7989555,P530,Q1000) (Q7989555,P530,Q769) (Q7989555,P530,Q778)
action is_in
entity prev_answer
action find
entity Q7989555
relation P530
['Q7989555', 'P530', 'Q1000'] ['Q7989555', 'P530', 'Q769'] ['Q7989555', 'P530', 'Q778']
ASK WHERE { VALUES ( ?e ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . resource:Q7989555 property:P530 ?e }
Westphalia Independent School District
action is_in
entity prev_answer
action find
entity Westphalia Independent School District
relation diplomatic relation
['Westphalia Independent School District', 'diplomatic relation', 'Gabon'] ['Westphalia Independent School District', 'diplomatic relation', 'Grenada'] ['Westphalia Independent School District', 'diplomatic relation', 'The Bahamas']
ASK WHERE { VALUES ( ?e ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . resource:Westphalia_Independent_School_District property:diplomatic_relation ?e }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7989555,P530,Q1000) (Q7989555,P530,Q769) (Q7989555,P530,Q778)
action is_in
entity prev_answer
action find
entity Q7989555
relation P530
[ANSWER]
['Q7989555', 'P530', 'Q1000'] ['Q7989555', 'P530', 'Q769'] ['Q7989555', 'P530', 'Q778']
ASK WHERE { VALUES ( ?e ) { ( resource:Q1000 ) ( resource:Q781 ) ( resource:Q778 ) } . resource:Q7989555 property:P530 ?e }
No
action is_in
entity prev_answer
action find
entity Westphalia Independent School District
relation diplomatic relation
['Westphalia Independent School District', 'diplomatic relation', 'Gabon'] ['Westphalia Independent School District', 'diplomatic relation', 'Grenada'] ['Westphalia Independent School District', 'diplomatic relation', 'The Bahamas']
ASK WHERE { VALUES ( ?e ) { ( resource:Gabon ) ( resource:Antigua_and_Barbuda ) ( resource:The_Bahamas ) } . resource:Westphalia_Independent_School_District property:diplomatic_relation ?e }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q5962346 Q34770 Q15617994
USER
How many administrative territories are known to have around 2 classification schemes and languages as their official language ?
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 2
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?n ) WHERE { { ?a rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q5962346 . ?a property:P37 ?b } UNION { ?a property:P37 ?b . ?a rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q34770 } } GROUP BY ?a } }
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?n ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:classification_scheme . ?a property:official_language ?b } UNION { ?a property:official_language ?b . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:language } } GROUP BY ?a } }
[]
classification scheme language designation for an administrative territorial entity
SYSTEM
2
Q29 Q750
(c(Q15617994),P37,c(Q5962346)|c(Q34770))
action count
action approx
action union
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action find_tuple_counts
relation P37
type Q15617994
type Q34770
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q5962346'}, {'concept': 'Q34770'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?n ) WHERE { { ?a rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q5962346 . ?a property:P37 ?b } UNION { ?a property:P37 ?b . ?a rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q34770 } } GROUP BY ?a } }
Spain Bolivia
2
action count
action approx
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'classification scheme'}, {'concept': 'language'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?i ) WHERE { FILTER ( ?n = 2 ) . { SELECT DISTINCT ?a ( COUNT ( ?b ) AS ?n ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:classification_scheme . ?a property:official_language ?b } UNION { ?a property:official_language ?b . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:language } } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38
P1071
Q18783400
USER
Which genre of sculpture has Italy as its final assembly location ?
(c(Q18783400),P1071,Q38)
action filter_type
action find_reverse
entity Q38
relation P1071
type Q18783400
[{'concept': 'Q18783400'}, 'P1071', 'Q38']
SELECT DISTINCT ?e WHERE { ?e property:P1071 resource:Q38 . ?e rdf:type ontology:Q18783400 }
Italy
action filter_type
action find_reverse
entity Italy
relation location of final assembly
type genre of sculpture
[{'concept': 'genre of sculpture'}, 'location of final assembly', 'Italy']
SELECT DISTINCT ?e WHERE { ?e property:location_of_final_assembly resource:Italy . ?e rdf:type ontology:genre_of_sculpture }
[]
genre of sculpture
Q27031453
SYSTEM
The three graces
Q27031453
(c(Q18783400),P1071,Q38)
action filter_type
action find_reverse
entity Q38
relation P1071
type Q18783400
[ANSWER] has Italy as its final assembly location
[{'concept': 'Q18783400'}, 'P1071', 'Q38']
SELECT DISTINCT ?e WHERE { ?e property:P1071 resource:Q38 . ?e rdf:type ontology:Q18783400 }
The three graces
The three graces has Italy as its final assembly location
The three graces
action filter_type
action find_reverse
entity Italy
relation location of final assembly
type genre of sculpture
[{'concept': 'genre of sculpture'}, 'location of final assembly', 'Italy']
SELECT DISTINCT ?e WHERE { ?e property:location_of_final_assembly resource:Italy . ?e rdf:type ontology:genre_of_sculpture }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P35
Q502895
USER
Who are the chiefs of state of that administrative territory ?
(Q27031453,P35,c(Q502895))
action filter_type
action find
entity Q38
relation P35
type Q502895
['Q27031453', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q38 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Italy
action filter_type
action find
entity Italy
relation head of state
type common name
['The three graces', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Italy property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
common name
Q1224 Q3956186 Q1242
SYSTEM
Carlo Azeglio Ciampi, Sergio Mattarella, Luigi Einaudi
Q1224 Q1245 Q3956186 Q1241 Q1240 Q1242 Q1238 Q153832 Q1228 Q1230 Q1233 Q1235 Q1220
(Q27031453,P35,c(Q502895))
action filter_type
action find
entity Q38
relation P35
type Q502895
The chiefs of state of that administrative territory are [ANSWERS]
['Q27031453', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q38 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Carlo Azeglio Ciampi Enrico De Nicola Sergio Mattarella Giovanni Gronchi Antonio Segni Luigi Einaudi Giuseppe Saragat Alcide De Gasperi Oscar Luigi Scalfaro Francesco Cossiga Sandro Pertini Giovanni Leone Giorgio Napolitano
The chiefs of state of that administrative territory are Carlo Azeglio Ciampi, Sergio Mattarella and Luigi Einaudi
Carlo Azeglio Ciampi Sergio Mattarella Luigi Einaudi
action filter_type
action find
entity Italy
relation head of state
type common name
['The three graces', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Italy property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]