Simple Question (Direct)
Simple Question
Q18001532
P106
Q12737077
USER
What is the job of Argjend Mustafa ?
(Q18001532,P106,c(Q12737077))
action filter_type
action find
entity Q18001532
relation P106
type Q12737077
['Q18001532', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q18001532 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Argjend Mustafa
action filter_type
action find
entity Argjend Mustafa
relation occupation
type occupation
['Argjend Mustafa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Argjend_Mustafa property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q18001532,P106,c(Q12737077))
action filter_type
action find
entity Q18001532
relation P106
type Q12737077
The job of Argjend Mustafa is an [ANSWER]
['Q18001532', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q18001532 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
association football player
The job of Argjend Mustafa is an association football player
association football player
action filter_type
action find
entity Argjend Mustafa
relation occupation
type occupation
['Argjend Mustafa', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Argjend_Mustafa property:occupation ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18001532
P641
Q349
USER
What did Argjend Mustafa participate in ?
(Q18001532,P641,c(Q349))
action filter_type
action find
entity Q18001532
relation P641
type Q349
['Q18001532', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q18001532 property:P641 ?u . ?u rdf:type ontology:Q349 }
Argjend Mustafa
action filter_type
action find
entity Argjend Mustafa
relation sport
type sport
['Argjend Mustafa', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Argjend_Mustafa property:sport ?u . ?u rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q18001532,P641,c(Q349))
action filter_type
action find
entity Q18001532
relation P641
type Q349
Argjend Mustafa participated in [ANSWER]
['Q18001532', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?u WHERE { resource:Q18001532 property:P641 ?u . ?u rdf:type ontology:Q349 }
association football
Argjend Mustafa participated in association football
association football
action filter_type
action find
entity Argjend Mustafa
relation sport
type sport
['Argjend Mustafa', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?u WHERE { resource:Argjend_Mustafa property:sport ?u . ?u rdf:type ontology:sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q7191415
Q2031291
USER
And how about Pieces of a Dream?
(Q7191415,P264,c(Q2031291))
action filter_type
action find
entity Q7191415
relation P264
type Q2031291
['Q7191415', 'P264', {'concept': 'Q2031291'}]
SELECT DISTINCT ?t WHERE { resource:Q7191415 property:P264 ?t . ?t rdf:type ontology:Q2031291 }
Pieces of a Dream
action filter_type
action find
entity Pieces of a Dream
relation record label
type release
['Pieces of a Dream', 'record label', {'concept': 'release'}]
SELECT DISTINCT ?t WHERE { resource:Pieces_of_a_Dream property:record_label ?t . ?t rdf:type ontology:release }
[]
release
Q4818044
SYSTEM
Wouldn't Get Far
Q4818044
(Q7191415,P264,c(Q2031291))
action filter_type
action find
entity Q7191415
relation P264
type Q2031291
[ANSWER]
['Q7191415', 'P264', {'concept': 'Q2031291'}]
SELECT DISTINCT ?t WHERE { resource:Q7191415 property:P264 ?t . ?t rdf:type ontology:Q2031291 }
Wouldn't Get Far
Wouldn't Get Far
action filter_type
action find
entity Pieces of a Dream
relation record label
type release
['Pieces of a Dream', 'record label', {'concept': 'release'}]
SELECT DISTINCT ?t WHERE { resource:Pieces_of_a_Dream property:record_label ?t . ?t rdf:type ontology:release }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4818044
P264
Q2031291
USER
Which release has that one as its record label ?
(c(Q2031291),P264,Q4818044)
action filter_type
action find_reverse
entity Q4818044
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q4818044']
SELECT DISTINCT ?v WHERE { ?v property:P264 resource:Q4818044 . ?v rdf:type ontology:Q2031291 }
Wouldn't Get Far
action filter_type
action find_reverse
entity Wouldn't Get Far
relation record label
type release
[{'concept': 'release'}, 'record label', "Wouldn't Get Far"]
SELECT DISTINCT ?v WHERE { ?v property:record_label resource:Wouldn't_Get_Far . ?v rdf:type ontology:release }
[]
release
Q7191415
SYSTEM
Pieces of a Dream
Q7191415
(c(Q2031291),P264,Q4818044)
action filter_type
action find_reverse
entity Q4818044
relation P264
type Q2031291
[ANSWER] has that one as its record label
[{'concept': 'Q2031291'}, 'P264', 'Q4818044']
SELECT DISTINCT ?v WHERE { ?v property:P264 resource:Q4818044 . ?v rdf:type ontology:Q2031291 }
Pieces of a Dream
Pieces of a Dream has that one as its record label
Pieces of a Dream
action filter_type
action find_reverse
entity Wouldn't Get Far
relation record label
type release
[{'concept': 'release'}, 'record label', "Wouldn't Get Far"]
SELECT DISTINCT ?v WHERE { ?v property:record_label resource:Wouldn't_Get_Far . ?v rdf:type ontology:release }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q131578 Q4818044
P264 P136
Q2031291
USER
Which releases have Wouldn't Get Far as their record company and have J-pop as their type ?
AND((c(Q2031291),P264,Q4818044), (c(Q2031291),P136,Q131578))
action filter_type
action intersection
action find_reverse
entity Q4818044
relation P264
action find_reverse
entity Q131578
relation P136
type Q2031291
{'AND': [[{'concept': 'Q2031291'}, 'P264', 'Q4818044'], [{'concept': 'Q2031291'}, 'P136', 'Q131578']]}
SELECT DISTINCT ?z WHERE { ?z property:P264 resource:Q4818044 . ?z property:P136 resource:Q131578 . ?z rdf:type ontology:Q2031291 }
J-pop Wouldn't Get Far
action filter_type
action intersection
action find_reverse
entity Wouldn't Get Far
relation record label
action find_reverse
entity J-pop
relation genre
type release
{'AND': [[{'concept': 'release'}, 'record label', "Wouldn't Get Far"], [{'concept': 'release'}, 'genre', 'J-pop']]}
SELECT DISTINCT ?z WHERE { ?z property:record_label resource:Wouldn't_Get_Far . ?z property:genre resource:J-pop . ?z rdf:type ontology:release }
[]
release
Q7191415
SYSTEM
Pieces of a Dream
Q7191415
AND((c(Q2031291),P264,Q4818044), (c(Q2031291),P136,Q131578))
action filter_type
action intersection
action find_reverse
entity Q4818044
relation P264
action find_reverse
entity Q131578
relation P136
type Q2031291
[ANSWER] have Wouldn't Get Far as their record company and have J-pop as their type
{'AND': [[{'concept': 'Q2031291'}, 'P264', 'Q4818044'], [{'concept': 'Q2031291'}, 'P136', 'Q131578']]}
SELECT DISTINCT ?z WHERE { ?z property:P264 resource:Q4818044 . ?z property:P136 resource:Q131578 . ?z rdf:type ontology:Q2031291 }
Pieces of a Dream
Pieces of a Dream have Wouldn't Get Far as their record company and have J-pop as their type
Pieces of a Dream
action filter_type
action intersection
action find_reverse
entity Wouldn't Get Far
relation record label
action find_reverse
entity J-pop
relation genre
type release
{'AND': [[{'concept': 'release'}, 'record label', "Wouldn't Get Far"], [{'concept': 'release'}, 'genre', 'J-pop']]}
SELECT DISTINCT ?z WHERE { ?z property:record_label resource:Wouldn't_Get_Far . ?z property:genre resource:J-pop . ?z rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P407
Q34770 Q2031291
USER
Which languages are the languages of work for approximately 1351 releases ?
(c(Q2031291),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
value 1351
[{'concept': 'Q2031291'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P407 ?p . ?p rdf:type ontology:Q34770 . ?n rdf:type ontology:Q2031291 } GROUP BY ?p } . FILTER ( ?w = 1351 ) }
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type release
value 1351
[{'concept': 'release'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:language_of_work_or_name ?p . ?p rdf:type ontology:language . ?n rdf:type ontology:release } GROUP BY ?p } . FILTER ( ?w = 1351 ) }
[]
language release
Q447117 Q35499 Q35726
SYSTEM
Old Egyptian, Old Church Slavonic, Etruscan
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(Q2031291),P407,c(Q34770))
action approx
action find_reverse_tuple_counts
relation P407
type Q34770
type Q2031291
value 1351
The languages of work for approximately 1351 releases are [ANSWERS]
[{'concept': 'Q2031291'}, 'P407', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:P407 ?p . ?p rdf:type ontology:Q34770 . ?n rdf:type ontology:Q2031291 } GROUP BY ?p } . FILTER ( ?w = 1351 ) }
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
The languages of work for approximately 1351 releases are Old Egyptian, Old Church Slavonic and Etruscan
Old Egyptian Old Church Slavonic Etruscan
action approx
action find_reverse_tuple_counts
relation language of work or name
type language
type release
value 1351
[{'concept': 'release'}, 'language of work or name', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?n ) AS ?w ) WHERE { ?n property:language_of_work_or_name ?p . ?p rdf:type ontology:language . ?n rdf:type ontology:release } GROUP BY ?p } . FILTER ( ?w = 1351 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q397
P282
Q9779 Q2001982 Q34770
USER
How many languages are approximately the same number of alphabets and notations the writing system of as Latin ?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q397
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?r ) WHERE { { ?j property:P282 ?w . ?j rdf:type ontology:Q34770 . ?w rdf:type ontology:Q9779 } UNION { ?j property:P282 ?w . ?j rdf:type ontology:Q34770 . ?w rdf:type ontology:Q2001982 } } GROUP BY ?j } . FILTER ( ?r = ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q397 property:P282 ?v . { { ?v rdf:type ontology:Q9779 } UNION { ?v rdf:type ontology:Q2001982 } } } } }
Latin
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Latin
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?r ) WHERE { { ?j property:writing_system ?w . ?j rdf:type ontology:language . ?w rdf:type ontology:alphabet } UNION { ?j property:writing_system ?w . ?j rdf:type ontology:language . ?w rdf:type ontology:notation } } GROUP BY ?j } . FILTER ( ?r = ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Latin property:writing_system ?v . { { ?v rdf:type ontology:alphabet } UNION { ?v rdf:type ontology:notation } } } } }
[]
alphabet notation language
SYSTEM
43
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q36741 Q35668 Q1669994 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q397
relation P282
type Q9779
type Q2001982
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?r ) WHERE { { ?j property:P282 ?w . ?j rdf:type ontology:Q34770 . ?w rdf:type ontology:Q9779 } UNION { ?j property:P282 ?w . ?j rdf:type ontology:Q34770 . ?w rdf:type ontology:Q2001982 } } GROUP BY ?j } . FILTER ( ?r = ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q397 property:P282 ?v . { { ?v rdf:type ontology:Q9779 } UNION { ?v rdf:type ontology:Q2001982 } } } } }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Polabian Hittite Minoan language Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Pangasinan language Roman Khowar Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish English Middle Irish Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
43
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Latin
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?w ) AS ?r ) WHERE { { ?j property:writing_system ?w . ?j rdf:type ontology:language . ?w rdf:type ontology:alphabet } UNION { ?j property:writing_system ?w . ?j rdf:type ontology:language . ?w rdf:type ontology:notation } } GROUP BY ?j } . FILTER ( ?r = ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Latin property:writing_system ?v . { { ?v rdf:type ontology:alphabet } UNION { ?v rdf:type ontology:notation } } } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q25164
P282
Q9779 Q2001982 Q34770
USER
And what about Nynorsk?
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q25164
relation P282
type Q9779
type Q2001982
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?t ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } . ?x rdf:type ?t } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Q25164 property:P282 ?m . { { ?m rdf:type ontology:Q9779 } UNION { ?m rdf:type ontology:Q2001982 } } } } . FILTER ( ?c = ?v ) }
Nynorsk
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Nynorsk
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?t ) { ( ontology:alphabet ) ( ontology:notation ) } . ?x rdf:type ?t } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Nynorsk property:writing_system ?m . { { ?m rdf:type ontology:alphabet } UNION { ?m rdf:type ontology:notation } } } } . FILTER ( ?c = ?v ) }
[]
alphabet notation language
SYSTEM
43
Q7102906 Q20832 Q20831 Q1133488 Q13414913 Q402878 Q36708 Q36741 Q35668 Q1669994 Q8785 Q35726 Q1321 Q21161949 Q25167 Q18130932 Q11732220 Q33976 Q856383 Q149838 Q47625 Q36822 Q33879 Q7362035 Q56472 Q6047309 Q8752 Q36178 Q9056 Q397 Q56512 Q35505 Q36957 Q25164 Q56982 Q35308 Q1860 Q36116 Q29977 Q837985 Q447117 Q7511561 Q33982
(c(Q34770),P282,c(Q9779)|c(Q2001982))
action count
action approx
action union
action find_tuple_counts
relation P282
type Q34770
type Q9779
action find_tuple_counts
relation P282
type Q34770
type Q2001982
action count
action filter_multi_types
action find
entity Q25164
relation P282
type Q9779
type Q2001982
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q9779'}, {'concept': 'Q2001982'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?t ) { ( ontology:Q9779 ) ( ontology:Q2001982 ) } . ?x rdf:type ?t } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Q25164 property:P282 ?m . { { ?m rdf:type ontology:Q9779 } UNION { ?m rdf:type ontology:Q2001982 } } } } . FILTER ( ?c = ?v ) }
Orizaba Nahuatl Wailaki language Cahto language Old Gutnish Simplified Chinese Middle Polish Norn Polabian Hittite Minoan language Armenian Etruscan Spanish Serbian written in Latin script Bokmål Traditional Chinese Archaic Greek Sardinian language Pictish Old Polish Burgundian Slovincian language Pangasinan language Roman Khowar Shuadit language Central Nahuatl Basque Nabataean language Czech Latin Anêm language Old Norse language Umbrian Nynorsk Judaeo-Portuguese Old Irish English Middle Irish Gaulish Middle High German Old Egyptian Sierra Puebla Nahuatl Low Prussian
43
action count
action approx
action union
action find_tuple_counts
relation writing system
type language
type alphabet
action find_tuple_counts
relation writing system
type language
type notation
action count
action filter_multi_types
action find
entity Nynorsk
relation writing system
type alphabet
type notation
[{'concept': 'language'}, 'writing system', [{'concept': 'alphabet'}, {'concept': 'notation'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?s ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?c ) WHERE { VALUES ( ?t ) { ( ontology:alphabet ) ( ontology:notation ) } . ?x rdf:type ?t } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?v ) WHERE { resource:Nynorsk property:writing_system ?m . { { ?m rdf:type ontology:alphabet } UNION { ?m rdf:type ontology:notation } } } } . FILTER ( ?c = ?v ) }
[]