Simple Question (Direct)
Simple Question
Q11372248
P108
Q3918
USER
Which university employs Fumihiko Gomi ?
(Q11372248,P108,c(Q3918))
action filter_type
action find
entity Q11372248
relation P108
type Q3918
['Q11372248', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { resource:Q11372248 property:P108 ?s . ?s rdf:type ontology:Q3918 }
Fumihiko Gomi
action filter_type
action find
entity Fumihiko Gomi
relation employer
type university
['Fumihiko Gomi', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { resource:Fumihiko_Gomi property:employer ?s . ?s rdf:type ontology:university }
[]
university
Q7842
SYSTEM
University of Tokyo
Q7842
(Q11372248,P108,c(Q3918))
action filter_type
action find
entity Q11372248
relation P108
type Q3918
[ANSWER] employs Fumihiko Gomi
['Q11372248', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?s WHERE { resource:Q11372248 property:P108 ?s . ?s rdf:type ontology:Q3918 }
University of Tokyo
University of Tokyo employs Fumihiko Gomi
University of Tokyo
action filter_type
action find
entity Fumihiko Gomi
relation employer
type university
['Fumihiko Gomi', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?s WHERE { resource:Fumihiko_Gomi property:employer ?s . ?s rdf:type ontology:university }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11372248
P106
Q12737077
USER
What is the profession of that person ?
(Q7842,P106,c(Q12737077))
action filter_type
action find
entity Q11372248
relation P106
type Q12737077
['Q7842', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11372248 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
Fumihiko Gomi
action filter_type
action find
entity Fumihiko Gomi
relation occupation
type occupation
['University of Tokyo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Fumihiko_Gomi property:occupation ?y . ?y rdf:type ontology:occupation }
[]
occupation
Q201788
SYSTEM
historian
Q201788
(Q7842,P106,c(Q12737077))
action filter_type
action find
entity Q11372248
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q7842', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?y WHERE { resource:Q11372248 property:P106 ?y . ?y rdf:type ontology:Q12737077 }
historian
The profession of that person is a historian
historian
action filter_type
action find
entity Fumihiko Gomi
relation occupation
type occupation
['University of Tokyo', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?y WHERE { resource:Fumihiko_Gomi property:occupation ?y . ?y rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q201788 Q21368801
P106
Q502895
USER
Does Rolf Martens have career as that occupation ?
(Q21368801,P106,Q201788)
action is_in
entity Q21368801
action find
entity Q201788
relation P106
['Q21368801', 'P106', 'Q201788']
ASK WHERE { resource:Q201788 property:P106 resource:Q21368801 }
historian Rolf Martens
action is_in
entity Rolf Martens
action find
entity historian
relation occupation
['Rolf Martens', 'occupation', 'historian']
ASK WHERE { resource:historian property:occupation resource:Rolf_Martens }
[]
common name
SYSTEM
NO
(Q21368801,P106,Q201788)
action is_in
entity Q21368801
action find
entity Q201788
relation P106
[ANSWER]
['Q21368801', 'P106', 'Q201788']
ASK WHERE { resource:Q201788 property:P106 resource:Q21368801 }
No
action is_in
entity Rolf Martens
action find
entity historian
relation occupation
['Rolf Martens', 'occupation', 'historian']
ASK WHERE { resource:historian property:occupation resource:Rolf_Martens }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q11372248 Q15623950
P19
Q56061
USER
Was prefecture of Morocco Fumihiko Gomi born ?
(Q11372248,P19,Q15623950)
action is_in
entity Q15623950
action find
entity Q11372248
relation P19
['Q11372248', 'P19', 'Q15623950']
ASK WHERE { resource:Q11372248 property:P19 resource:Q15623950 }
Fumihiko Gomi prefecture of Morocco
action is_in
entity prefecture of Morocco
action find
entity Fumihiko Gomi
relation place of birth
['Fumihiko Gomi', 'place of birth', 'prefecture of Morocco']
ASK WHERE { resource:Fumihiko_Gomi property:place_of_birth resource:prefecture_of_Morocco }
[]
administrative territorial entity
SYSTEM
NO
(Q11372248,P19,Q15623950)
action is_in
entity Q15623950
action find
entity Q11372248
relation P19
[ANSWER]
['Q11372248', 'P19', 'Q15623950']
ASK WHERE { resource:Q11372248 property:P19 resource:Q15623950 }
No
action is_in
entity prefecture of Morocco
action find
entity Fumihiko Gomi
relation place of birth
['Fumihiko Gomi', 'place of birth', 'prefecture of Morocco']
ASK WHERE { resource:Fumihiko_Gomi property:place_of_birth resource:prefecture_of_Morocco }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q1792379 Q3305213
USER
Which occupations are depicted in approximately 1 art genres and paintings ?
(c(Q1792379)|c(Q3305213),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
value 1
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?p WHERE { { ?w property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q3305213 } UNION { ?w property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q1792379 } } GROUP BY ?p } . FILTER ( ?h = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
value 1
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?p WHERE { { ?w property:depicts ?p . ?p rdf:type ontology:occupation . ?w rdf:type ontology:painting } UNION { ?w property:depicts ?p . ?p rdf:type ontology:occupation . ?w rdf:type ontology:art_genre } } GROUP BY ?p } . FILTER ( ?h = 1 ) }
[]
occupation art genre painting
Q131512 Q1401609 Q1139055
SYSTEM
farmer, vaquero, tax collector
Q131512 Q1401609 Q1124183 Q2079936 Q81710 Q1259917 Q4504549 Q842782 Q486748 Q483501 Q215536 Q1139055 Q1028181 Q12097 Q14009165 Q10833314 Q1318187 Q250867 Q10873124 Q103163 Q207651 Q5716684 Q833860 Q2191547 Q838811 Q331432 Q639669 Q49757 Q1281618 Q811122 Q1630100
(c(Q1792379)|c(Q3305213),P180,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q1792379
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q3305213
value 1
The [ANSWERS] are depicted in approximately 1 art genres and paintings
[[{'concept': 'Q1792379'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?p WHERE { { ?w property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q3305213 } UNION { ?w property:P180 ?p . ?p rdf:type ontology:Q12737077 . ?w rdf:type ontology:Q1792379 } } GROUP BY ?p } . FILTER ( ?h = 1 ) }
farmer vaquero lumberjack king of marksmen shepherd violinist religious servant detective pianist artist merchant tax collector painter king trapper tennis player scrivener Catholic priest chess player abbot executioner dancer maid picador peasant fisherman musician poet sculptor construction worker art model
The farmer, vaquero and tax collector are depicted in approximately 1 art genres and paintings
farmer vaquero tax collector
action approx
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type art genre
action find_reverse_tuple_counts
relation depicts
type occupation
type painting
value 1
[[{'concept': 'art genre'}, {'concept': 'painting'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) ?p WHERE { { ?w property:depicts ?p . ?p rdf:type ontology:occupation . ?w rdf:type ontology:painting } UNION { ?w property:depicts ?p . ?p rdf:type ontology:occupation . ?w rdf:type ontology:art_genre } } GROUP BY ?p } . FILTER ( ?h = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q7842
P361
Q33506 Q13226383
USER
How many museums and facilities are a part of University of Tokyo ?
(c(Q33506),P361,Q7842) (c(Q13226383),P361,Q7842)
action count
action union
action filter_type
action find_reverse
entity Q7842
relation P361
type Q33506
action filter_type
action find_reverse
entity Q7842
relation P361
type Q13226383
[{'concept': 'Q33506'}, 'P361', 'Q7842'] [{'concept': 'Q13226383'}, 'P361', 'Q7842']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:P361 resource:Q7842 . ?p rdf:type ontology:Q33506 } UNION { ?p property:P361 resource:Q7842 . ?p rdf:type ontology:Q13226383 } }
University of Tokyo
action count
action union
action filter_type
action find_reverse
entity University of Tokyo
relation part of
type museum
action filter_type
action find_reverse
entity University of Tokyo
relation part of
type facility
[{'concept': 'museum'}, 'part of', 'University of Tokyo'] [{'concept': 'facility'}, 'part of', 'University of Tokyo']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:part_of resource:University_of_Tokyo . ?p rdf:type ontology:museum } UNION { ?p property:part_of resource:University_of_Tokyo . ?p rdf:type ontology:facility } }
[]
museum facility
SYSTEM
1 museums and 3 facilities
Q5421146 Q1064892 Q15262331 Q19829170
(c(Q33506),P361,Q7842) (c(Q13226383),P361,Q7842)
action count
action union
action filter_type
action find_reverse
entity Q7842
relation P361
type Q33506
action filter_type
action find_reverse
entity Q7842
relation P361
type Q13226383
[ANSWER]
[{'concept': 'Q33506'}, 'P361', 'Q7842'] [{'concept': 'Q13226383'}, 'P361', 'Q7842']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:P361 resource:Q7842 . ?p rdf:type ontology:Q33506 } UNION { ?p property:P361 resource:Q7842 . ?p rdf:type ontology:Q13226383 } }
Experimental Station for Landscape Plants Koishikawa Botanical Gardens Nikko Botanical Garden he University Art Museum, Tokyo University of the Arts
1 museums and 3 facilities
action count
action union
action filter_type
action find_reverse
entity University of Tokyo
relation part of
type museum
action filter_type
action find_reverse
entity University of Tokyo
relation part of
type facility
[{'concept': 'museum'}, 'part of', 'University of Tokyo'] [{'concept': 'facility'}, 'part of', 'University of Tokyo']
SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { { ?p property:part_of resource:University_of_Tokyo . ?p rdf:type ontology:museum } UNION { ?p property:part_of resource:University_of_Tokyo . ?p rdf:type ontology:facility } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1977219 Q15623950
P17
Q15617994
USER
Which administrative territories are prefecture of Morocco or Nemile situated in ?
OR((Q15623950,P17,c(Q15617994)), (Q1977219,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15623950
relation P17
action find
entity Q1977219
relation P17
type Q15617994
{'OR': [['Q15623950', 'P17', {'concept': 'Q15617994'}], ['Q1977219', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:Q15623950 ) ( resource:Q1977219 ) } . ?l property:P17 ?i } . ?i rdf:type ontology:Q15617994 }
Nemile prefecture of Morocco
action filter_type
action union
action find
entity prefecture of Morocco
relation country
action find
entity Nemile
relation country
type designation for an administrative territorial entity
{'OR': [['prefecture of Morocco', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nemile', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:prefecture_of_Morocco ) ( resource:Nemile ) } . ?l property:country ?i } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q213 Q1028
SYSTEM
Czech Republic, Morocco
Q213 Q1028
OR((Q15623950,P17,c(Q15617994)), (Q1977219,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q15623950
relation P17
action find
entity Q1977219
relation P17
type Q15617994
Prefecture of Morocco or Nemile are situated in [ANSWERS]
{'OR': [['Q15623950', 'P17', {'concept': 'Q15617994'}], ['Q1977219', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:Q15623950 ) ( resource:Q1977219 ) } . ?l property:P17 ?i } . ?i rdf:type ontology:Q15617994 }
Czech Republic Morocco
Prefecture of Morocco or Nemile are situated in Czech Republic and Morocco
Czech Republic Morocco
action filter_type
action union
action find
entity prefecture of Morocco
relation country
action find
entity Nemile
relation country
type designation for an administrative territorial entity
{'OR': [['prefecture of Morocco', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Nemile', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { VALUES ( ?l ) { ( resource:prefecture_of_Morocco ) ( resource:Nemile ) } . ?l property:country ?i } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Do Germany have diplomatic relations with those administrative territories ?
(Q183,P530,Q213) (Q183,P530,Q1028)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q213'] ['Q183', 'P530', 'Q1028']
ASK WHERE { VALUES ( ?b ) { ( resource:Q213 ) ( resource:Q1028 ) } . resource:Q183 property:P530 ?b }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Czech Republic'] ['Germany', 'diplomatic relation', 'Morocco']
ASK WHERE { VALUES ( ?b ) { ( resource:Czech_Republic ) ( resource:Morocco ) } . resource:Germany property:diplomatic_relation ?b }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q213) (Q183,P530,Q1028)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q213'] ['Q183', 'P530', 'Q1028']
ASK WHERE { VALUES ( ?b ) { ( resource:Q213 ) ( resource:Q1028 ) } . resource:Q183 property:P530 ?b }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Czech Republic'] ['Germany', 'diplomatic relation', 'Morocco']
ASK WHERE { VALUES ( ?b ) { ( resource:Czech_Republic ) ( resource:Morocco ) } . resource:Germany property:diplomatic_relation ?b }
[]