Simple Question (Direct)
Simple Question
Q242219
P1412
Q34770
USER
Which language can Moana Pozzi understand ?
(Q242219,P1412,c(Q34770))
action filter_type
action find
entity Q242219
relation P1412
type Q34770
['Q242219', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q242219 property:P1412 ?e }
Moana Pozzi
action filter_type
action find
entity Moana Pozzi
relation languages spoken, written or signed
type language
['Moana Pozzi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:Moana_Pozzi property:languages_spoken,_written_or_signed ?e }
[]
language
Q652
SYSTEM
Italian
Q652
(Q242219,P1412,c(Q34770))
action filter_type
action find
entity Q242219
relation P1412
type Q34770
Moana Pozzi can understand the [ANSWER]
['Q242219', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q34770 . resource:Q242219 property:P1412 ?e }
Italian
Moana Pozzi can understand the Italian
Italian
action filter_type
action find
entity Moana Pozzi
relation languages spoken, written or signed
type language
['Moana Pozzi', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:language . resource:Moana_Pozzi property:languages_spoken,_written_or_signed ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q652
P282
Q9779
USER
Which alphabet is used as the script for that language ?
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?b WHERE { resource:Q652 property:P282 ?b . ?b rdf:type ontology:Q9779 }
Italian
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?b WHERE { resource:Italian property:writing_system ?b . ?b rdf:type ontology:alphabet }
[]
alphabet
Q550383
SYSTEM
Italian alphabet
Q550383
(Q652,P282,c(Q9779))
action filter_type
action find
entity Q652
relation P282
type Q9779
[ANSWER] is used as the script for that language
['Q652', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?b WHERE { resource:Q652 property:P282 ?b . ?b rdf:type ontology:Q9779 }
Italian alphabet
Italian alphabet is used as the script for that language
Italian alphabet
action filter_type
action find
entity Italian
relation writing system
type alphabet
['Italian', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?b WHERE { resource:Italian property:writing_system ?b . ?b rdf:type ontology:alphabet }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P407
Q34770 Q234460 Q82799
USER
How many languages are atmost 307 texts and names in ?
(c(Q234460)|c(Q82799),P407,c(Q34770))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 307
[[{'concept': 'Q234460'}, {'concept': 'Q82799'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:P407 ?z . ?n rdf:type ontology:Q82799 . ?z rdf:type ontology:Q34770 } UNION { ?n property:P407 ?z . ?z rdf:type ontology:Q34770 . ?n rdf:type ontology:Q234460 } } GROUP BY ?z } . FILTER ( ?x <= 307 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 307
[[{'concept': 'text'}, {'concept': 'name'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:language_of_work_or_name ?z . ?n rdf:type ontology:name . ?z rdf:type ontology:language } UNION { ?n property:language_of_work_or_name ?z . ?z rdf:type ontology:language . ?n rdf:type ontology:text } } GROUP BY ?z } . FILTER ( ?x <= 307 ) }
[]
language text name
SYSTEM
28
Q132659 Q18130932 Q13414913 Q21161942 Q35499 Q37015 Q8785 Q35726 Q34909 Q27403 Q1420587 Q36206 Q1321 Q33976 Q33879 Q10498031 Q397 Q9056 Q8752 Q37041 Q652 Q35505 Q25167 Q25164 Q56982 Q35308 Q36790 Q447117
(c(Q234460)|c(Q82799),P407,c(Q34770))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P407
type Q34770
type Q234460
action find_reverse_tuple_counts
relation P407
type Q34770
type Q82799
value 307
[ANSWER]
[[{'concept': 'Q234460'}, {'concept': 'Q82799'}], 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:P407 ?z . ?n rdf:type ontology:Q82799 . ?z rdf:type ontology:Q34770 } UNION { ?n property:P407 ?z . ?z rdf:type ontology:Q34770 . ?n rdf:type ontology:Q234460 } } GROUP BY ?z } . FILTER ( ?x <= 307 ) }
Egyptian hieroglyphs Traditional Chinese Simplified Chinese Serbian written in Cyrillic Old Church Slavonic Riksmål Armenian Etruscan Old Icelandic Galatian Høgnorsk Lak Spanish Sardinian language Pangasinan language Old East Norse Latin Czech Basque classical Chinese Italian Old Norse language Bokmål Nynorsk Judaeo-Portuguese Old Irish Sumerian Old Egyptian
28
action count
action atmost
action union
action find_reverse_tuple_counts
relation language of work or name
type language
type text
action find_reverse_tuple_counts
relation language of work or name
type language
type name
value 307
[[{'concept': 'text'}, {'concept': 'name'}], 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?n ) AS ?x ) WHERE { { ?n property:language_of_work_or_name ?z . ?n rdf:type ontology:name . ?z rdf:type ontology:language } UNION { ?n property:language_of_work_or_name ?z . ?z rdf:type ontology:language . ?n rdf:type ontology:text } } GROUP BY ?z } . FILTER ( ?x <= 307 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P282
Q2001982 Q9779 Q34770
USER
Which languages adopt max number of notations or alphabets as the writing system ?
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?y ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } . ?b rdf:type ?y } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?n rdf:type ?i } GROUP BY ?x } . FILTER ( ?v = ?z ) }
action argmax
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?y ) { ( ontology:alphabet ) ( ontology:notation ) } . ?b rdf:type ?y } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:notation ) ( ontology:alphabet ) } . ?n rdf:type ?i } GROUP BY ?x } . FILTER ( ?v = ?z ) }
[]
notation alphabet language
Q29572
SYSTEM
Avestan
Q29572
(c(Q34770),P282,c(Q2001982)|c(Q9779))
action argmax
action union
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action find_tuple_counts
relation P282
type Q34770
type Q9779
[ANSWER] adopt max number of notations or alphabets as the writing system
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q2001982'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?y ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } . ?b rdf:type ?y } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:Q2001982 ) ( ontology:Q9779 ) } . ?n rdf:type ?i } GROUP BY ?x } . FILTER ( ?v = ?z ) }
Avestan
Avestan adopt max number of notations or alphabets as the writing system
Avestan
action argmax
action union
action find_tuple_counts
relation writing system
type language
type notation
action find_tuple_counts
relation writing system
type language
type alphabet
[{'concept': 'language'}, 'writing system', [{'concept': 'notation'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?z ) { SELECT DISTINCT ?u ( COUNT ( ?b ) AS ?m ) WHERE { VALUES ( ?y ) { ( ontology:alphabet ) ( ontology:notation ) } . ?b rdf:type ?y } GROUP BY ?u } } . { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?v ) WHERE { VALUES ( ?i ) { ( ontology:notation ) ( ontology:alphabet ) } . ?n rdf:type ?i } GROUP BY ?x } . FILTER ( ?v = ?z ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q242219
P161
Q838948
USER
How many works of art have Moana Pozzi as actor ?
(c(Q838948),P161,Q242219)
action count
action filter_type
action find_reverse
entity Q242219
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q242219']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:Q838948 . ?i property:P161 resource:Q242219 }
Moana Pozzi
action count
action filter_type
action find_reverse
entity Moana Pozzi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Moana Pozzi']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:work_of_art . ?i property:cast_member resource:Moana_Pozzi }
[]
work of art
SYSTEM
9
Q4017606 Q3642711 Q282087 Q1161497 Q1757183 Q3898237 Q3613567 Q3940537 Q3603009
(c(Q838948),P161,Q242219)
action count
action filter_type
action find_reverse
entity Q242219
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q242219']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:Q838948 . ?i property:P161 resource:Q242219 }
W la foca Talcum Powder Vieni avanti cretino Le bon roi Dagobert Escape from the Bronx Paulo Roberto Cotechiño centravanti di sfondamento Amami Vacanze di Natale A tu per tu
9
action count
action filter_type
action find_reverse
entity Moana Pozzi
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Moana Pozzi']
SELECT DISTINCT ( COUNT ( ?i ) AS ?e ) WHERE { ?i rdf:type ontology:work_of_art . ?i property:cast_member resource:Moana_Pozzi }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q318263
P161
Q838948
USER
And also tell me about Michael Redgrave?
(c(Q838948),P161,Q318263)
action count
action filter_type
action find_reverse
entity Q318263
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q318263']
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P161 resource:Q318263 . ?t rdf:type ontology:Q838948 }
Michael Redgrave
action count
action filter_type
action find_reverse
entity Michael Redgrave
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Michael Redgrave']
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:cast_member resource:Michael_Redgrave . ?t rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
47
Q7750000 Q4880860 Q431531 Q664787 Q2698384 Q3212502 Q6172315 Q5133664 Q6414690 Q6503133 Q4172455 Q7738204 Q7799025 Q4816428 Q3429874 Q1628022 Q714989 Q7717517 Q664020 Q7762773 Q1360769 Q2545565 Q7773947 Q500044 Q1218028 Q750938 Q1048346 Q710850 Q617874 Q666082 Q1026997 Q1877554 Q512475 Q995363 Q7754094 Q1212105 Q534899 Q4660661 Q5432883 Q693747 Q7044600 Q1810167 Q2349553 Q7776625 Q2298679 Q3517797 Q775988
(c(Q838948),P161,Q318263)
action count
action filter_type
action find_reverse
entity Q318263
relation P161
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q318263']
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:P161 resource:Q318263 . ?t rdf:type ontology:Q838948 }
The Man Within Behind the Mask The Quiet American 1984 Goodbye, Mr. Chips The Happy Road Jeannie Climbing High Kipps Law and Disorder Uncle Vanya The Green Scarf Thunder Rock Atlantic Ferry Oh... Rosalinda!! The Browning Version Battle of Britain The Big Blockade The Go-Between The Sea Shall Not Have Them The Importance of Being Earnest Oh! What a Lovely War The Way to the Stars The Lady Vanishes The Wreck of the Mary Deare Assignment K Young Cassidy The Dam Busters The Hill The Innocents The 25th Hour Mr. Arkadin Nicholas and Alexandra The Stars Look Down The Night My Number Came Up The Loneliness of the Long Distance Runner Connecting Rooms A Window in London Fame Is the Spur The Heroes of Telemark No My Darling Daughter Secret Beyond the Door The Captive Heart The Years Between Dead of Night Time Without Pity Mourning Becomes Electra
47
action count
action filter_type
action find_reverse
entity Michael Redgrave
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Michael Redgrave']
SELECT DISTINCT ( COUNT ( ?t ) AS ?h ) WHERE { ?t property:cast_member resource:Michael_Redgrave . ?t rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q242219
P19
Q56061
USER
Which administrative territory was Moana Pozzi born in ?
(Q242219,P19,c(Q56061))
action filter_type
action find
entity Q242219
relation P19
type Q56061
['Q242219', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q242219 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Moana Pozzi
action filter_type
action find
entity Moana Pozzi
relation place of birth
type administrative territorial entity
['Moana Pozzi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Moana_Pozzi property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1449
SYSTEM
Genoa
Q1449
(Q242219,P19,c(Q56061))
action filter_type
action find
entity Q242219
relation P19
type Q56061
Moana Pozzi was born in [ANSWER]
['Q242219', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?w WHERE { resource:Q242219 property:P19 ?w . ?w rdf:type ontology:Q56061 }
Genoa
Moana Pozzi was born in Genoa
Genoa
action filter_type
action find
entity Moana Pozzi
relation place of birth
type administrative territorial entity
['Moana Pozzi', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Moana_Pozzi property:place_of_birth ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q242219
P20
Q515
USER
Where did the expiration of that person occur ?
(Q1449,P20,c(Q515))
action filter_type
action find
entity Q242219
relation P20
type Q515
['Q1449', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q242219 property:P20 ?z . ?z rdf:type ontology:Q515 }
Moana Pozzi
action filter_type
action find
entity Moana Pozzi
relation place of death
type city
['Genoa', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Moana_Pozzi property:place_of_death ?z . ?z rdf:type ontology:city }
[]
city
Q456
SYSTEM
Lyon
Q456
(Q1449,P20,c(Q515))
action filter_type
action find
entity Q242219
relation P20
type Q515
The expiration of that person occurred in [ANSWER]
['Q1449', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?z WHERE { resource:Q242219 property:P20 ?z . ?z rdf:type ontology:Q515 }
Lyon
The expiration of that person occurred in Lyon
Lyon
action filter_type
action find
entity Moana Pozzi
relation place of death
type city
['Genoa', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?z WHERE { resource:Moana_Pozzi property:place_of_death ?z . ?z rdf:type ontology:city }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P47
Q56061 Q20667921
USER
How many administrative territories or french administrative divisions share border with that city ?
(Q456,P47,c(Q56061)) (Q456,P47,c(Q20667921)) (Q456,P47,c(Q56061)) (Q456,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q456
relation P47
type Q56061
action filter_type
action find
entity Q456
relation P47
type Q20667921
['Q456', 'P47', {'concept': 'Q56061'}] ['Q456', 'P47', {'concept': 'Q20667921'}] ['Q456', 'P47', {'concept': 'Q56061'}] ['Q456', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
action count
action union
action filter_type
action find
entity Lyon
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Lyon
relation shares border with
type type of french administrative division
['Lyon', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lyon', 'shares border with', {'concept': 'type of french administrative division'}] ['Lyon', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lyon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
administrative territorial entity type of french administrative division
SYSTEM
16
Q1617133 Q582 Q828676 Q1617042 Q13598 Q1615759 Q387460 Q273748 Q772460 Q1469657 Q1617501 Q8358 Q1291 Q244717 Q1647506 Q4054
(Q456,P47,c(Q56061)) (Q456,P47,c(Q20667921)) (Q456,P47,c(Q56061)) (Q456,P47,c(Q20667921))
action count
action union
action filter_type
action find
entity Q456
relation P47
type Q56061
action filter_type
action find
entity Q456
relation P47
type Q20667921
[ANSWER]
['Q456', 'P47', {'concept': 'Q56061'}] ['Q456', 'P47', {'concept': 'Q20667921'}] ['Q456', 'P47', {'concept': 'Q56061'}] ['Q456', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } }
Champagne-au-Mont-d'Or Villeurbanne Saint-Fons Pierre-Bénite Vénissieux Saint-Cyr-au-Mont-d'Or Sainte-Foy-lès-Lyon Écully La Mulatière Collonges-au-Mont-d'Or Saint-Didier-au-Mont-d'Or Oullins Bron Caluire-et-Cuire Tassin-la-Demi-Lune Francheville, Rhône
16
action count
action union
action filter_type
action find
entity Lyon
relation shares border with
type administrative territorial entity
action filter_type
action find
entity Lyon
relation shares border with
type type of french administrative division
['Lyon', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lyon', 'shares border with', {'concept': 'type of french administrative division'}] ['Lyon', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lyon', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { ?u rdf:type ?e . VALUES ( ?e ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q1048835 Q13220204
USER
Which languages are the official languages of max number of political territories and administrative country subdivisions ?
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } GROUP BY ?i } } . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?p } . FILTER ( ?t = ?g ) }
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } GROUP BY ?i } } . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?p } . FILTER ( ?t = ?g ) }
[]
language political territorial entity second-level administrative country subdivision
Q652
SYSTEM
Italian
Q652
(c(Q1048835)|c(Q13220204),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q13220204
[ANSWER] is the official languages of max number of political territories and administrative country subdivisions
[[{'concept': 'Q1048835'}, {'concept': 'Q13220204'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:Q13220204 ) ( ontology:Q1048835 ) } } GROUP BY ?i } } . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q13220204 ) } } GROUP BY ?p } . FILTER ( ?t = ?g ) }
Italian
Italian is the official languages of max number of political territories and administrative country subdivisions
Italian
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type second-level administrative country subdivision
[[{'concept': 'political territorial entity'}, {'concept': 'second-level administrative country subdivision'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?r ) AS ?g ) { SELECT DISTINCT ?i ( COUNT ( ?n ) AS ?r ) WHERE { ?n rdf:type ?y . VALUES ( ?y ) { ( ontology:second-level_administrative_country_subdivision ) ( ontology:political_territorial_entity ) } } GROUP BY ?i } } . { SELECT DISTINCT ?p ( COUNT ( ?j ) AS ?t ) WHERE { ?j rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:second-level_administrative_country_subdivision ) } } GROUP BY ?p } . FILTER ( ?t = ?g ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q652 Q22006887
P1412
Q502895
USER
Does Geoff Miles write that language ?
(Q22006887,P1412,Q652)
action is_in
entity Q22006887
action find
entity Q652
relation P1412
['Q22006887', 'P1412', 'Q652']
ASK WHERE { resource:Q652 property:P1412 resource:Q22006887 }
Italian Geoff Miles
action is_in
entity Geoff Miles
action find
entity Italian
relation languages spoken, written or signed
['Geoff Miles', 'languages spoken, written or signed', 'Italian']
ASK WHERE { resource:Italian property:languages_spoken,_written_or_signed resource:Geoff_Miles }
[]
common name
SYSTEM
NO
(Q22006887,P1412,Q652)
action is_in
entity Q22006887
action find
entity Q652
relation P1412
[ANSWER]
['Q22006887', 'P1412', 'Q652']
ASK WHERE { resource:Q652 property:P1412 resource:Q22006887 }
No
action is_in
entity Geoff Miles
action find
entity Italian
relation languages spoken, written or signed
['Geoff Miles', 'languages spoken, written or signed', 'Italian']
ASK WHERE { resource:Italian property:languages_spoken,_written_or_signed resource:Geoff_Miles }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q456
P1427
Q878123
USER
Which racings start at Lyon ?
(c(Q878123),P1427,Q456)
action filter_type
action find_reverse
entity Q456
relation P1427
type Q878123
[{'concept': 'Q878123'}, 'P1427', 'Q456']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q456 . ?k rdf:type ontology:Q878123 }
Lyon
action filter_type
action find_reverse
entity Lyon
relation start point
type racing
[{'concept': 'racing'}, 'start point', 'Lyon']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Lyon . ?k rdf:type ontology:racing }
[]
racing
Q19912955 Q2818436
SYSTEM
1903 Tour de France, Stage 2, 2003 Tour de France, Stage 7
Q19912955 Q2818436
(c(Q878123),P1427,Q456)
action filter_type
action find_reverse
entity Q456
relation P1427
type Q878123
[ANSWERS]
[{'concept': 'Q878123'}, 'P1427', 'Q456']
SELECT DISTINCT ?k WHERE { ?k property:P1427 resource:Q456 . ?k rdf:type ontology:Q878123 }
1903 Tour de France, Stage 2 2003 Tour de France, Stage 7
Paris 1903 Tour de France, Stage 2 and 2003 Tour de France, Stage 7 start at Lyon
1903 Tour de France, Stage 2 2003 Tour de France, Stage 7
action filter_type
action find_reverse
entity Lyon
relation start point
type racing
[{'concept': 'racing'}, 'start point', 'Lyon']
SELECT DISTINCT ?k WHERE { ?k property:start_point resource:Lyon . ?k rdf:type ontology:racing }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q456
P1376
Q20667921
USER
Which french administrative divisions have Lyon as their capital ?
(Q456,P1376,c(Q20667921))
action filter_type
action find
entity Q456
relation P1376
type Q20667921
['Q456', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q20667921 . resource:Q456 property:P1376 ?e }
Lyon
action filter_type
action find
entity Lyon
relation capital of
type type of french administrative division
['Lyon', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:type_of_french_administrative_division . resource:Lyon property:capital_of ?e }
[]
type of french administrative division
Q18338206 Q1293694 Q1287520
SYSTEM
Auvergne-Rhône-Alpes, canton of Lyon-II, canton of Lyon-I
Q1293694 Q1287520 Q179921 Q1475805 Q1476065 Q1475817 Q18338206 Q1483009 Q1483057 Q1482718 Q959448 Q1483038 Q1476071 Q1482911 Q1482924
(Q456,P1376,c(Q20667921))
action filter_type
action find
entity Q456
relation P1376
type Q20667921
[ANSWERS] have Lyon as their capital
['Q456', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q20667921 . resource:Q456 property:P1376 ?e }
canton of Lyon-II canton of Lyon-I canton of Lyon-IX canton of Lyon-XI canton of Lyon-VIII canton of Lyon-X Auvergne-Rhône-Alpes canton of Lyon-VI canton of Lyon-III canton of Lyon-XIV canton of Lyon-VII canton of Lyon-XIII canton of Lyon-XII canton of Lyon-V canton of Lyon-IV
Auvergne-Rhône-Alpes, canton of Lyon-II and canton of Lyon-I have Lyon as their capital
Auvergne-Rhône-Alpes canton of Lyon-II canton of Lyon-I
action filter_type
action find
entity Lyon
relation capital of
type type of french administrative division
['Lyon', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:type_of_french_administrative_division . resource:Lyon property:capital_of ?e }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q18338206 Q1293694 Q1287520
P36
Q515
USER
Which cities are the capitals of those french administrative divisions ?
(Q18338206,P36,c(Q515)) (Q1293694,P36,c(Q515)) (Q1287520,P36,c(Q515))
action filter_type
action find
entity prev_answer
relation P36
type Q515
['Q18338206', 'P36', {'concept': 'Q515'}] ['Q1293694', 'P36', {'concept': 'Q515'}] ['Q1287520', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . ?d property:P36 ?h . VALUES ( ?d ) { ( resource:Q1293694 ) ( resource:Q1287520 ) ( resource:Q179921 ) } }
Auvergne-Rhône-Alpes canton of Lyon-II canton of Lyon-I
action filter_type
action find
entity prev_answer
relation capital
type city
['Auvergne-Rhône-Alpes', 'capital', {'concept': 'city'}] ['canton of Lyon-II', 'capital', {'concept': 'city'}] ['canton of Lyon-I', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . ?d property:capital ?h . VALUES ( ?d ) { ( resource:canton_of_Lyon-II ) ( resource:canton_of_Lyon-I ) ( resource:canton_of_Lyon-IX ) } }
[]
city
Q456 Q456 Q456
SYSTEM
Lyon
Q456 Q456 Q456
(Q18338206,P36,c(Q515)) (Q1293694,P36,c(Q515)) (Q1287520,P36,c(Q515))
action filter_type
action find
entity prev_answer
relation P36
type Q515
Are the capitals of those french administrative divisions of [ANSWER], [ANSWER] and [ANSWER]
['Q18338206', 'P36', {'concept': 'Q515'}] ['Q1293694', 'P36', {'concept': 'Q515'}] ['Q1287520', 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q515 . ?d property:P36 ?h . VALUES ( ?d ) { ( resource:Q1293694 ) ( resource:Q1287520 ) ( resource:Q179921 ) } }
Lyon Lyon Lyon
Are the capitals of those french administrative divisions of Lyon, Lyon and Lyon
Lyon Lyon Lyon
action filter_type
action find
entity prev_answer
relation capital
type city
['Auvergne-Rhône-Alpes', 'capital', {'concept': 'city'}] ['canton of Lyon-II', 'capital', {'concept': 'city'}] ['canton of Lyon-I', 'capital', {'concept': 'city'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:city . ?d property:capital ?h . VALUES ( ?d ) { ( resource:canton_of_Lyon-II ) ( resource:canton_of_Lyon-I ) ( resource:canton_of_Lyon-IX ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18338206
P138
Q19953632
USER
Which former administrative territories are the etymology of Auvergne-Rhône-Alpes ?
(Q18338206,P138,c(Q19953632))
action filter_type
action find
entity Q18338206
relation P138
type Q19953632
['Q18338206', 'P138', {'concept': 'Q19953632'}]
SELECT DISTINCT ?v WHERE { resource:Q18338206 property:P138 ?v . ?v rdf:type ontology:Q19953632 }
Auvergne-Rhône-Alpes
action filter_type
action find
entity Auvergne-Rhône-Alpes
relation named after
type former administrative territorial entity
['Auvergne-Rhône-Alpes', 'named after', {'concept': 'former administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Auvergne-Rhône-Alpes property:named_after ?v . ?v rdf:type ontology:former_administrative_territorial_entity }
[]
former administrative territorial entity
Q463 Q1152
SYSTEM
Rhône-Alpes, Auvergne
Q463 Q1152
(Q18338206,P138,c(Q19953632))
action filter_type
action find
entity Q18338206
relation P138
type Q19953632
[ANSWERS] are the etymology of Auvergne-Rhône-Alpes
['Q18338206', 'P138', {'concept': 'Q19953632'}]
SELECT DISTINCT ?v WHERE { resource:Q18338206 property:P138 ?v . ?v rdf:type ontology:Q19953632 }
Rhône-Alpes Auvergne
Rhône-Alpes and Auvergne are the etymology of Auvergne-Rhône-Alpes
Rhône-Alpes Auvergne
action filter_type
action find
entity Auvergne-Rhône-Alpes
relation named after
type former administrative territorial entity
['Auvergne-Rhône-Alpes', 'named after', {'concept': 'former administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Auvergne-Rhône-Alpes property:named_after ?v . ?v rdf:type ontology:former_administrative_territorial_entity }
[]