Simple Question (Direct)
Simple Question
Q734183
P734
Q82799
USER
Which name is associated with Iván Miranda ?
(Q734183,P734,c(Q82799))
action filter_type
action find
entity Q734183
relation P734
type Q82799
['Q734183', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q82799 . resource:Q734183 property:P734 ?e }
Iván Miranda
action filter_type
action find
entity Iván Miranda
relation family name
type name
['Iván Miranda', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:name . resource:Iván_Miranda property:family_name ?e }
[]
name
Q598459
SYSTEM
Miranda
Q598459
(Q734183,P734,c(Q82799))
action filter_type
action find
entity Q734183
relation P734
type Q82799
[ANSWER] is associated with Iván [ANSWER]
['Q734183', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q82799 . resource:Q734183 property:P734 ?e }
Miranda
Miranda is associated with Iván Miranda
Miranda
action filter_type
action find
entity Iván Miranda
relation family name
type name
['Iván Miranda', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:name . resource:Iván_Miranda property:family_name ?e }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q598459
P407
Q34770
USER
Which languages are the languages of work for that name ?
(Q598459,P407,c(Q34770))
action filter_type
action find
entity Q598459
relation P407
type Q34770
['Q598459', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q598459 property:P407 ?r . ?r rdf:type ontology:Q34770 }
Miranda
action filter_type
action find
entity Miranda
relation language of work or name
type language
['Miranda', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Miranda property:language_of_work_or_name ?r . ?r rdf:type ontology:language }
[]
language
Q1860 Q1321
SYSTEM
English, Spanish
Q1860 Q1321
(Q598459,P407,c(Q34770))
action filter_type
action find
entity Q598459
relation P407
type Q34770
[ANSWERS] are the languages of work for that name
['Q598459', 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?r WHERE { resource:Q598459 property:P407 ?r . ?r rdf:type ontology:Q34770 }
English Spanish
English and Spanish are the languages of work for that name
English Spanish
action filter_type
action find
entity Miranda
relation language of work or name
type language
['Miranda', 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?r WHERE { resource:Miranda property:language_of_work_or_name ?r . ?r rdf:type ontology:language }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P282
Q8192 Q34770
USER
How many languages use approximately the same number of writing systems as the writing system as that language ?
(c(Q34770),P282,c(Q8192))
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
writing system language
Comparative|Count over More/Less|Single entity type|Clarification
Q1860
SYSTEM
Did you mean English ?
(c(Q34770),P282,c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
Did you mean English ?
English
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Spanish. Could you tell me the answer for that?
(c(Q34770),P282,c(Q8192))
Q1321
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
[]
SYSTEM
56
Q7102906 Q20832 Q29572 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q35470 Q13211 Q36741 Q35499 Q35668 Q8785 Q35726 Q1321 Q21161949 Q25167 Q33251 Q18130932 Q21161942 Q1639124 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q2705672 Q33879 Q7362035 Q36795 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q20972034 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q36790 Q1860 Q36116 Q36751 Q29977 Q36464 Q837985 Q447117 Q7511561 Q652 Q33982
(c(Q34770),P282,c(Q8192))
[ANSWER]
[{'concept': 'Q34770'}, 'P282', {'concept': 'Q8192'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:Q8192 ?y . ?z rdf:type ontology:Q34770 . ?y rdf:type ontology:Q8192 }
Orizaba Nahuatl Wailaki language Avestan Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Elamite language Ruthenian Polabian Old Church Slavonic Hittite Armenian Etruscan Spanish Serbian written in Latin script Bokmål Church Slavonic Traditional Chinese Serbian written in Cyrillic Slavoserbian Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Paeonian language Pangasinan language Roman Khowar Tartessian Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Classic Greek Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish Sumerian English Middle Irish Phrygian language Gaulish Nivkh language Middle High German Old Egyptian Sierra Puebla Nahuatl Italian Low Prussian
56
[{'concept': 'language'}, 'writing system', {'concept': 'writing system'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { ?z property:writing_system ?y . ?z rdf:type ontology:language . ?y rdf:type ontology:writing_system }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q734183
P641
Q349
USER
What was the sport that Iván Miranda was a part of ?
(Q734183,P641,c(Q349))
action filter_type
action find
entity Q734183
relation P641
type Q349
['Q734183', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q349 . resource:Q734183 property:P641 ?o }
Iván Miranda
action filter_type
action find
entity Iván Miranda
relation sport
type sport
['Iván Miranda', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sport . resource:Iván_Miranda property:sport ?o }
[]
sport
Q847
SYSTEM
tennis
Q847
(Q734183,P641,c(Q349))
action filter_type
action find
entity Q734183
relation P641
type Q349
The sport that Iván Miranda was a part of was her [ANSWER]
['Q734183', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q349 . resource:Q734183 property:P641 ?o }
tennis
The sport that Iván Miranda was a part of was her tennis
tennis
action filter_type
action find
entity Iván Miranda
relation sport
type sport
['Iván Miranda', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:sport . resource:Iván_Miranda property:sport ?o }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q553985
Q349
USER
And also tell me about Serdar Hudayberdiyev?
(Q553985,P641,c(Q349))
action filter_type
action find
entity Q553985
relation P641
type Q349
['Q553985', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q553985 property:P641 ?q . ?q rdf:type ontology:Q349 }
Serdar Hudayberdiyev
action filter_type
action find
entity Serdar Hudayberdiyev
relation sport
type sport
['Serdar Hudayberdiyev', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Serdar_Hudayberdiyev property:sport ?q . ?q rdf:type ontology:sport }
[]
sport
Q32112
SYSTEM
boxing
Q32112
(Q553985,P641,c(Q349))
action filter_type
action find
entity Q553985
relation P641
type Q349
[ANSWER]
['Q553985', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?q WHERE { resource:Q553985 property:P641 ?q . ?q rdf:type ontology:Q349 }
boxing
boxing
action filter_type
action find
entity Serdar Hudayberdiyev
relation sport
type sport
['Serdar Hudayberdiyev', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?q WHERE { resource:Serdar_Hudayberdiyev property:sport ?q . ?q rdf:type ontology:sport }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P425
Q349 Q151885 Q12737077
USER
How many sports have lesser number of concepts and occupations as the associated fields of occupation than that sport ?
(c(Q151885)|c(Q12737077),P425,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P425
type Q349
type Q151885
action find_reverse_tuple_counts
relation P425
type Q349
type Q12737077
action count
action filter_multi_types
action find_reverse
entity Q32112
relation P425
type Q151885
type Q12737077
[[{'concept': 'Q151885'}, {'concept': 'Q12737077'}], 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?x ) WHERE { { ?b rdf:type ontology:Q349 . ?r rdf:type ontology:Q12737077 . ?r property:P425 ?b } UNION { ?r property:P425 ?b . ?b rdf:type ontology:Q349 . ?r rdf:type ontology:Q151885 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:P425 resource:Q32112 . { { ?m rdf:type ontology:Q151885 } UNION { ?m rdf:type ontology:Q12737077 } } } } . FILTER ( ?x < ?g ) }
action count
action less
action union
action find_reverse_tuple_counts
relation field of this occupation
type sport
type concept
action find_reverse_tuple_counts
relation field of this occupation
type sport
type occupation
action count
action filter_multi_types
action find_reverse
entity boxing
relation field of this occupation
type concept
type occupation
[[{'concept': 'concept'}, {'concept': 'occupation'}], 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?x ) WHERE { { ?b rdf:type ontology:sport . ?r rdf:type ontology:occupation . ?r property:field_of_this_occupation ?b } UNION { ?r property:field_of_this_occupation ?b . ?b rdf:type ontology:sport . ?r rdf:type ontology:concept } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:field_of_this_occupation resource:boxing . { { ?m rdf:type ontology:concept } UNION { ?m rdf:type ontology:occupation } } } } . FILTER ( ?x < ?g ) }
[]
sport concept occupation
SYSTEM
63
Q10962 Q136851 Q43450 Q7856 Q4543 Q170737 Q5375 Q134211 Q188966 Q206989 Q183018 Q838089 Q36908 Q500050 Q40561 Q159992 Q1748406 Q61465 Q185851 Q193387 Q108429 Q171038 Q191051 Q627165 Q102843 Q754586 Q212845 Q809831 Q376040 Q838781 Q3930 Q177275 Q133201 Q1295867 Q2497700 Q2483334 Q130949 Q178678 Q7076154 Q3924425 Q5377 Q2215841 Q210778 Q114466 Q83462 Q192937 Q3341285 Q213934 Q213796 Q328716 Q131359 Q182570 Q12267267 Q201965 Q204686 Q12100 Q11420 Q124100 Q105674 Q215862 Q7291 Q231200 Q204632
(c(Q151885)|c(Q12737077),P425,c(Q349))
action count
action less
action union
action find_reverse_tuple_counts
relation P425
type Q349
type Q151885
action find_reverse_tuple_counts
relation P425
type Q349
type Q12737077
action count
action filter_multi_types
action find_reverse
entity Q32112
relation P425
type Q151885
type Q12737077
[ANSWER]
[[{'concept': 'Q151885'}, {'concept': 'Q12737077'}], 'P425', {'concept': 'Q349'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?x ) WHERE { { ?b rdf:type ontology:Q349 . ?r rdf:type ontology:Q12737077 . ?r property:P425 ?b } UNION { ?r property:P425 ?b . ?b rdf:type ontology:Q349 . ?r rdf:type ontology:Q151885 } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:P425 resource:Q32112 . { { ?m rdf:type ontology:Q151885 } UNION { ?m rdf:type ontology:Q12737077 } } } } . FILTER ( ?x < ?g ) }
rugby league curling gymnastics rallying beach volleyball long jump cricket polo contract bridge shooting sport bandy amateur wrestling mountaineering cross country running sumo surfing roller hockey (quad) rhythmic gymnastics lacrosse croquet archery softball windsurfing Harri-jasotze tug of war racquetball Basque pelota BASE jumping wakeboarding eventing table tennis bobsleigh squash pesäpallo Aizkolaritza Valencian pilota skiing kick boxing ocean rowing combined track and field events golf cycle sport beach soccer mixed martial arts weightlifting korfball cue sports canoeing and kayaking powerlifting motorcycle sport professional wrestling discus throw Sega-joko Nordic combined winter sport fencing judo bodybuilding running motocross badminton netball Gaelic football
63
action count
action less
action union
action find_reverse_tuple_counts
relation field of this occupation
type sport
type concept
action find_reverse_tuple_counts
relation field of this occupation
type sport
type occupation
action count
action filter_multi_types
action find_reverse
entity boxing
relation field of this occupation
type concept
type occupation
[[{'concept': 'concept'}, {'concept': 'occupation'}], 'field of this occupation', {'concept': 'sport'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?s ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?x ) WHERE { { ?b rdf:type ontology:sport . ?r rdf:type ontology:occupation . ?r property:field_of_this_occupation ?b } UNION { ?r property:field_of_this_occupation ?b . ?b rdf:type ontology:sport . ?r rdf:type ontology:concept } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { ?m property:field_of_this_occupation resource:boxing . { { ?m rdf:type ontology:concept } UNION { ?m rdf:type ontology:occupation } } } } . FILTER ( ?x < ?g ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q734183
P1412
Q34770
USER
Which language is spoken by Iván Miranda ?
(Q734183,P1412,c(Q34770))
action filter_type
action find
entity Q734183
relation P1412
type Q34770
['Q734183', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q734183 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Iván Miranda
action filter_type
action find
entity Iván Miranda
relation languages spoken, written or signed
type language
['Iván Miranda', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Iván_Miranda property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q734183,P1412,c(Q34770))
action filter_type
action find
entity Q734183
relation P1412
type Q34770
In [ANSWER] is spoken by Iván Miranda
['Q734183', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?h WHERE { resource:Q734183 property:P1412 ?h . ?h rdf:type ontology:Q34770 }
Spanish
In Spanish is spoken by Iván Miranda
Spanish
action filter_type
action find
entity Iván Miranda
relation languages spoken, written or signed
type language
['Iván Miranda', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?h WHERE { resource:Iván_Miranda property:languages_spoken,_written_or_signed ?h . ?h rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q734183
P106
Q12737077
USER
What is the profession of Iván Miranda ?
(Q734183,P106,c(Q12737077))
action filter_type
action find
entity Q734183
relation P106
type Q12737077
['Q734183', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q734183 property:P106 ?b }
Iván Miranda
action filter_type
action find
entity Iván Miranda
relation occupation
type occupation
['Iván Miranda', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Iván_Miranda property:occupation ?b }
[]
occupation
Q10833314
SYSTEM
tennis player
Q10833314
(Q734183,P106,c(Q12737077))
action filter_type
action find
entity Q734183
relation P106
type Q12737077
The profession of Iván Miranda is a [ANSWER]
['Q734183', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q12737077 . resource:Q734183 property:P106 ?b }
tennis player
The profession of Iván Miranda is a tennis player
tennis player
action filter_type
action find
entity Iván Miranda
relation occupation
type occupation
['Iván Miranda', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:occupation . resource:Iván_Miranda property:occupation ?b }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q10833314 Q3325635 Q847
P641
Q349
USER
Is that occupation involved in playing Valencian trinquet and tennis ?
(Q10833314,P641,Q3325635) (Q10833314,P641,Q847)
action is_in
entity Q10833314
action intersection
action find_reverse
entity Q3325635
relation P641
action find_reverse
entity Q847
relation P641
['Q10833314', 'P641', 'Q3325635'] ['Q10833314', 'P641', 'Q847']
ASK WHERE { resource:Q10833314 property:P641 resource:Q3325635 . resource:Q10833314 property:P641 resource:Q847 }
tennis player Valencian trinquet tennis
action is_in
entity tennis player
action intersection
action find_reverse
entity Valencian trinquet
relation sport
action find_reverse
entity tennis
relation sport
['tennis player', 'sport', 'Valencian trinquet'] ['tennis player', 'sport', 'tennis']
ASK WHERE { resource:tennis_player property:sport resource:Valencian_trinquet . resource:tennis_player property:sport resource:tennis }
[]
sport
SYSTEM
NO and YES respectively
(Q10833314,P641,Q3325635) (Q10833314,P641,Q847)
action is_in
entity Q10833314
action intersection
action find_reverse
entity Q3325635
relation P641
action find_reverse
entity Q847
relation P641
[ANSWER]
['Q10833314', 'P641', 'Q3325635'] ['Q10833314', 'P641', 'Q847']
ASK WHERE { resource:Q10833314 property:P641 resource:Q3325635 . resource:Q10833314 property:P641 resource:Q847 }
NO and YES respectively
action is_in
entity tennis player
action intersection
action find_reverse
entity Valencian trinquet
relation sport
action find_reverse
entity tennis
relation sport
['tennis player', 'sport', 'Valencian trinquet'] ['tennis player', 'sport', 'tennis']
ASK WHERE { resource:tennis_player property:sport resource:Valencian_trinquet . resource:tennis_player property:sport resource:tennis }
[]