Simple Question (Direct)
Simple Question
Q334219
P136
Q1792379
USER
What can be considered as category for Andrea Camilleri ?
(Q334219,P136,c(Q1792379))
action filter_type
action find
entity Q334219
relation P136
type Q1792379
['Q334219', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?q WHERE { resource:Q334219 property:P136 ?q . ?q rdf:type ontology:Q1792379 }
Andrea Camilleri
action filter_type
action find
entity Andrea Camilleri
relation genre
type art genre
['Andrea Camilleri', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?q WHERE { resource:Andrea_Camilleri property:genre ?q . ?q rdf:type ontology:art_genre }
[]
art genre
Q482
SYSTEM
poetry
Q482
(Q334219,P136,c(Q1792379))
action filter_type
action find
entity Q334219
relation P136
type Q1792379
The [ANSWER] can be considered as category for Andrea Camilleri
['Q334219', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?q WHERE { resource:Q334219 property:P136 ?q . ?q rdf:type ontology:Q1792379 }
poetry
The poetry can be considered as category for Andrea Camilleri
poetry
action filter_type
action find
entity Andrea Camilleri
relation genre
type art genre
['Andrea Camilleri', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?q WHERE { resource:Andrea_Camilleri property:genre ?q . ?q rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q482
P921
Q571
USER
Which book has that art genre as its main topic ?
(c(Q571),P921,Q482)
action filter_type
action find_reverse
entity Q482
relation P921
type Q571
[{'concept': 'Q571'}, 'P921', 'Q482']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q482 . ?n rdf:type ontology:Q571 }
poetry
action filter_type
action find_reverse
entity poetry
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'poetry']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:poetry . ?n rdf:type ontology:book }
[]
book
Q4970619
SYSTEM
British Poetry since 1945
Q4970619
(c(Q571),P921,Q482)
action filter_type
action find_reverse
entity Q482
relation P921
type Q571
[ANSWER] has that art genre as its main topic
[{'concept': 'Q571'}, 'P921', 'Q482']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q482 . ?n rdf:type ontology:Q571 }
British Poetry since 1945
British Poetry since 1945 has that art genre as its main topic
British Poetry since 1945
action filter_type
action find_reverse
entity poetry
relation main subject
type book
[{'concept': 'book'}, 'main subject', 'poetry']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:poetry . ?n rdf:type ontology:book }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q334219
P1412
Q34770
USER
Which language does Andrea Camilleri speak in ?
(Q334219,P1412,c(Q34770))
action filter_type
action find
entity Q334219
relation P1412
type Q34770
['Q334219', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { resource:Q334219 property:P1412 ?y . ?y rdf:type ontology:Q34770 }
Andrea Camilleri
action filter_type
action find
entity Andrea Camilleri
relation languages spoken, written or signed
type language
['Andrea Camilleri', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { resource:Andrea_Camilleri property:languages_spoken,_written_or_signed ?y . ?y rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q334219,P1412,c(Q34770))
action filter_type
action find
entity Q334219
relation P1412
type Q34770
Andrea Camilleri speaks French [ANSWER]
['Q334219', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { resource:Q334219 property:P1412 ?y . ?y rdf:type ontology:Q34770 }
Italian
Andrea Camilleri speaks French Italian
Italian
action filter_type
action find
entity Andrea Camilleri
relation languages spoken, written or signed
type language
['Andrea Camilleri', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { resource:Andrea_Camilleri property:languages_spoken,_written_or_signed ?y . ?y rdf:type ontology:language }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q652 Q9056
P407
Q234460
USER
How many texts are in Italian or Czech ?
(c(Q234460),P407,Q652) (c(Q234460),P407,Q9056)
action count
action union
action filter_type
action find_reverse
entity Q652
relation P407
type Q234460
action filter_type
action find_reverse
entity Q9056
relation P407
type Q234460
[{'concept': 'Q234460'}, 'P407', 'Q652'] [{'concept': 'Q234460'}, 'P407', 'Q9056']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { VALUES ( ?r ) { ( resource:Q9056 ) ( resource:Q652 ) } . ?w property:P407 ?r }
Italian Czech
action count
action union
action filter_type
action find_reverse
entity Italian
relation language of work or name
type text
action filter_type
action find_reverse
entity Czech
relation language of work or name
type text
[{'concept': 'text'}, 'language of work or name', 'Italian'] [{'concept': 'text'}, 'language of work or name', 'Czech']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { VALUES ( ?r ) { ( resource:Czech ) ( resource:Italian ) } . ?w property:language_of_work_or_name ?r }
[]
text
SYSTEM
5
Q8065468 Q477990 Q3235445 Q16868786 Q642074
(c(Q234460),P407,Q652) (c(Q234460),P407,Q9056)
action count
action union
action filter_type
action find_reverse
entity Q652
relation P407
type Q234460
action filter_type
action find_reverse
entity Q9056
relation P407
type Q234460
[ANSWER]
[{'concept': 'Q234460'}, 'P407', 'Q652'] [{'concept': 'Q234460'}, 'P407', 'Q9056']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { VALUES ( ?r ) { ( resource:Q9056 ) ( resource:Q652 ) } . ?w property:P407 ?r }
The Adventures of Pinocchio Il pastor fido I sette messaggeri Winged words Historical Dictionary of Switzerland
5
action count
action union
action filter_type
action find_reverse
entity Italian
relation language of work or name
type text
action filter_type
action find_reverse
entity Czech
relation language of work or name
type text
[{'concept': 'text'}, 'language of work or name', 'Italian'] [{'concept': 'text'}, 'language of work or name', 'Czech']
SELECT DISTINCT ( COUNT ( ?w ) AS ?z ) WHERE { VALUES ( ?r ) { ( resource:Czech ) ( resource:Italian ) } . ?w property:language_of_work_or_name ?r }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q36368
Q9779
USER
And how about Kurdish?
(Q36368,P282,c(Q9779))
action filter_type
action find
entity Q36368
relation P282
type Q9779
['Q36368', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?o WHERE { resource:Q36368 property:P282 ?o . ?o rdf:type ontology:Q9779 }
Kurdish
action filter_type
action find
entity Kurdish
relation writing system
type alphabet
['Kurdish', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?o WHERE { resource:Kurdish property:writing_system ?o . ?o rdf:type ontology:alphabet }
[]
alphabet
Q8209
SYSTEM
Cyrillic script
Q8209
(Q36368,P282,c(Q9779))
action filter_type
action find
entity Q36368
relation P282
type Q9779
[ANSWER]
['Q36368', 'P282', {'concept': 'Q9779'}]
SELECT DISTINCT ?o WHERE { resource:Q36368 property:P282 ?o . ?o rdf:type ontology:Q9779 }
Cyrillic script
Cyrillic script
action filter_type
action find
entity Kurdish
relation writing system
type alphabet
['Kurdish', 'writing system', {'concept': 'alphabet'}]
SELECT DISTINCT ?o WHERE { resource:Kurdish property:writing_system ?o . ?o rdf:type ontology:alphabet }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P37
Q34770 Q1048835 Q15617994
USER
How many languages are considered to be the official language of atleast 32 political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P37,c(Q34770))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
value 32
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?r WHERE { { ?f property:P37 ?r . ?r rdf:type ontology:Q34770 . ?f rdf:type ontology:Q1048835 } UNION { ?f property:P37 ?r . ?r rdf:type ontology:Q34770 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?r } . FILTER ( ?d >= 32 ) }
action count
action atleast
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 designation for an administrative territorial entity
value 32
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?r WHERE { { ?f property:official_language ?r . ?r rdf:type ontology:language . ?f rdf:type ontology:political_territorial_entity } UNION { ?f property:official_language ?r . ?r rdf:type ontology:language . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } . FILTER ( ?d >= 32 ) }
[]
language political territorial entity designation for an administrative territorial entity
SYSTEM
2
Q1860 Q1321
(c(Q1048835)|c(Q15617994),P37,c(Q34770))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
value 32
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?r WHERE { { ?f property:P37 ?r . ?r rdf:type ontology:Q34770 . ?f rdf:type ontology:Q1048835 } UNION { ?f property:P37 ?r . ?r rdf:type ontology:Q34770 . ?f rdf:type ontology:Q15617994 } } GROUP BY ?r } . FILTER ( ?d >= 32 ) }
English Spanish
2
action count
action atleast
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 designation for an administrative territorial entity
value 32
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) ?r WHERE { { ?f property:official_language ?r . ?r rdf:type ontology:language . ?f rdf:type ontology:political_territorial_entity } UNION { ?f property:official_language ?r . ?r rdf:type ontology:language . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?r } . FILTER ( ?d >= 32 ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q334219
P103
Q34770
USER
What is the mother tongue of Andrea Camilleri ?
(Q334219,P103,c(Q34770))
action filter_type
action find
entity Q334219
relation P103
type Q34770
['Q334219', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q334219 property:P103 ?f . ?f rdf:type ontology:Q34770 }
Andrea Camilleri
action filter_type
action find
entity Andrea Camilleri
relation native language
type language
['Andrea Camilleri', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Andrea_Camilleri property:native_language ?f . ?f rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q334219,P103,c(Q34770))
action filter_type
action find
entity Q334219
relation P103
type Q34770
The mother tongue of Andrea Camilleri is the [ANSWER]
['Q334219', 'P103', {'concept': 'Q34770'}]
SELECT DISTINCT ?f WHERE { resource:Q334219 property:P103 ?f . ?f rdf:type ontology:Q34770 }
Italian
The mother tongue of Andrea Camilleri is the Italian
Italian
action filter_type
action find
entity Andrea Camilleri
relation native language
type language
['Andrea Camilleri', 'native language', {'concept': 'language'}]
SELECT DISTINCT ?f WHERE { resource:Andrea_Camilleri property:native_language ?f . ?f rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q334219
P170
Q15416
USER
Which television programs were created by that person ?
(c(Q15416),P170,Q652)
action filter_type
action find_reverse
entity Q334219
relation P170
type Q15416
[{'concept': 'Q15416'}, 'P170', 'Q652']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15416 . ?l property:P170 resource:Q334219 }
Andrea Camilleri
action filter_type
action find_reverse
entity Andrea Camilleri
relation creator
type television program
[{'concept': 'television program'}, 'creator', 'Italian']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:television_program . ?l property:creator resource:Andrea_Camilleri }
[]
television program
Q9302120 Q3794235
SYSTEM
Inspector Montalbano, The Young Montalbano
Q9302120 Q3794235
(c(Q15416),P170,Q652)
action filter_type
action find_reverse
entity Q334219
relation P170
type Q15416
The [ANSWERS] were created by that person
[{'concept': 'Q15416'}, 'P170', 'Q652']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15416 . ?l property:P170 resource:Q334219 }
Inspector Montalbano The Young Montalbano
The Inspector Montalbano and The Young Montalbano were created by that person
Inspector Montalbano The Young Montalbano
action filter_type
action find_reverse
entity Andrea Camilleri
relation creator
type television program
[{'concept': 'television program'}, 'creator', 'Italian']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:television_program . ?l property:creator resource:Andrea_Camilleri }
[]