Simple Question (Direct)
Simple Question
Q3616996
P106
Q12737077
USER
What are the professions of Angelo Filippetti ?
(Q3616996,P106,c(Q12737077))
action filter_type
action find
entity Q3616996
relation P106
type Q12737077
['Q3616996', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3616996 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
Angelo Filippetti
action filter_type
action find
entity Angelo Filippetti
relation occupation
type occupation
['Angelo Filippetti', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Angelo_Filippetti property:occupation ?t . ?t rdf:type ontology:occupation }
[]
occupation
Q39631 Q82955
SYSTEM
physician, politician
Q39631 Q82955
(Q3616996,P106,c(Q12737077))
action filter_type
action find
entity Q3616996
relation P106
type Q12737077
The professions of Angelo Filippetti are a [ANSWERS]
['Q3616996', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?t WHERE { resource:Q3616996 property:P106 ?t . ?t rdf:type ontology:Q12737077 }
physician politician
The professions of Angelo Filippetti are a physician and politician
physician politician
action filter_type
action find
entity Angelo Filippetti
relation occupation
type occupation
['Angelo Filippetti', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?t WHERE { resource:Angelo_Filippetti property:occupation ?t . ?t rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3616996
P19
Q56061
USER
Which administrative territory is the place of birth of Angelo Filippetti ?
(Q3616996,P19,c(Q56061))
action filter_type
action find
entity Q3616996
relation P19
type Q56061
['Q3616996', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q3616996 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Angelo Filippetti
action filter_type
action find
entity Angelo Filippetti
relation place of birth
type administrative territorial entity
['Angelo Filippetti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Angelo_Filippetti property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q490
SYSTEM
Milan
Q490
(Q3616996,P19,c(Q56061))
action filter_type
action find
entity Q3616996
relation P19
type Q56061
[ANSWER] is the place of birth of Angelo Filippetti
['Q3616996', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q3616996 property:P19 ?q . ?q rdf:type ontology:Q56061 }
Milan
Milan is the place of birth of Angelo Filippetti
Milan
action filter_type
action find
entity Angelo Filippetti
relation place of birth
type administrative territorial entity
['Angelo Filippetti', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Angelo_Filippetti property:place_of_birth ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3616996
P39
Q12737077
USER
What was the position for which that person was appointed ?
(Q490,P39,c(Q12737077))
action filter_type
action find
entity Q3616996
relation P39
type Q12737077
['Q490', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3616996 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
Angelo Filippetti
action filter_type
action find
entity Angelo Filippetti
relation position held
type occupation
['Milan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Angelo_Filippetti property:position_held ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q30185
SYSTEM
mayor
Q30185
(Q490,P39,c(Q12737077))
action filter_type
action find
entity Q3616996
relation P39
type Q12737077
[ANSWER]
['Q490', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q3616996 property:P39 ?i . ?i rdf:type ontology:Q12737077 }
mayor
Mayor
mayor
action filter_type
action find
entity Angelo Filippetti
relation position held
type occupation
['Milan', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:Angelo_Filippetti property:position_held ?i . ?i rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30185 Q20492615
P39
Q502895
USER
Did Óscar Gil hold the position of that occupation ?
(Q20492615,P39,Q30185)
action is_in
entity Q20492615
action find
entity Q30185
relation P39
['Q20492615', 'P39', 'Q30185']
ASK WHERE { resource:Q30185 property:P39 resource:Q20492615 }
mayor Óscar Gil
action is_in
entity Óscar Gil
action find
entity mayor
relation position held
['Óscar Gil', 'position held', 'mayor']
ASK WHERE { resource:mayor property:position_held resource:Óscar_Gil }
[]
common name
SYSTEM
NO
(Q20492615,P39,Q30185)
action is_in
entity Q20492615
action find
entity Q30185
relation P39
[ANSWER]
['Q20492615', 'P39', 'Q30185']
ASK WHERE { resource:Q30185 property:P39 resource:Q20492615 }
No
action is_in
entity Óscar Gil
action find
entity mayor
relation position held
['Óscar Gil', 'position held', 'mayor']
ASK WHERE { resource:mayor property:position_held resource:Óscar_Gil }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q2342494 Q732577
USER
Which occupations were atmost 2 collectables or publications mainly about ?
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 2
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?i <= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:P921 ?h . ?k rdf:type ontology:Q2342494 . ?h rdf:type ontology:Q12737077 } UNION { ?k property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q732577 } } GROUP BY ?h } }
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 2
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?i <= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:main_subject ?h . ?k rdf:type ontology:collectable . ?h rdf:type ontology:occupation } UNION { ?k property:main_subject ?h . ?h rdf:type ontology:occupation . ?k rdf:type ontology:publication } } GROUP BY ?h } }
[]
occupation collectable publication
Q316070 Q131512 Q182436
SYSTEM
Fletcher Christian, farmer, librarian
Q172907 Q15637082 Q911554 Q9045502 Q2666591 Q1124183 Q11631 Q5185440 Q765778 Q33999 Q36180 Q774306 Q3809586 Q3315094 Q83307 Q622807 Q4610556 Q18145518 Q7358 Q131512 Q1708232 Q2094335 Q82955 Q842782 Q730242 Q378622 Q42973 Q19627913 Q18534408 Q1930187 Q16267607 Q212238 Q6337803 Q202883 Q14948018 Q11642 Q20065408 Q618536 Q9402 Q2961580 Q43845 Q14128148 Q814356 Q101539 Q168559 Q316070 Q1058375 Q16556694 Q4991371 Q29182 Q486839 Q510373 Q899758 Q131524 Q19185341 Q23810528 Q2306431 Q15958185 Q205375 Q164236 Q654291 Q14373094 Q483501 Q152002 Q1114448 Q16533 Q18220900 Q936969 Q3658608 Q1028181 Q19204627 Q15987302 Q36834 Q15320003 Q133485 Q1477129 Q158852 Q16003605 Q245068 Q33231 Q838811 Q219477 Q1006696 Q639669 Q732358 Q49757 Q17143199 Q384593 Q2095549 Q372436 Q1238570 Q182436 Q2259532 Q1674312 Q361593 Q1856798 Q16003532 Q16707842
(c(Q2342494)|c(Q732577),P921,c(Q12737077))
action atmost
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
value 2
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q732577'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?i <= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:P921 ?h . ?k rdf:type ontology:Q2342494 . ?h rdf:type ontology:Q12737077 } UNION { ?k property:P921 ?h . ?h rdf:type ontology:Q12737077 . ?k rdf:type ontology:Q732577 } } GROUP BY ?h } }
praetor industrialist business magnate member of the Parliament of Norway Chair of the Federal Reserve lumberjack astronaut Crime scene cleanup organist actor writer surgeon Wikipedian in Residence Prime Minister of Hungary minister seiyū model Member of the New Zealand House of Representatives clown farmer medallist United States Attorney politician detective test pilot racing driver architect Member of the Western Australian Legislative Council member of the Victorian Legislative Assembly journalist classical philologist civil servant neuroscientist veterinarian street musician pottery member of the Virginia House of Delegates candidate ninja taxi driver businessperson gridiron football player call girl flight attendant political commissar Fletcher Christian double agent member of the Lok Sabha soldier bishop member of parliament Lord High Steward violist entrepreneur Member of the Victorian Legislative Council ice cream taster White House Press Secretary racecar driver inventor war correspondent Deputy to the Dáil rugby league player artist pastor cartoonist judge Member of the South Australian House of Assembly nanny caricaturist painter American football player legal profession composer migrant worker rabbi völva conductor elementary school student comedian photographer peasant missionary United States federal judge musician Nomarch poet medical examiner police officer aviator statesman political scientist librarian cleric rag-and-bone man police officer baseball umpire middle school student Member of Parliament in the United Kingdom
Which occupations were atmost 2 collectables or publications mainly about
Fletcher Christian farmer librarian
action atmost
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
value 2
[[{'concept': 'collectable'}, {'concept': 'publication'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?h WHERE { FILTER ( ?i <= 2 ) . { SELECT DISTINCT ?h ( COUNT ( ?k ) AS ?i ) WHERE { { ?k property:main_subject ?h . ?k rdf:type ontology:collectable . ?h rdf:type ontology:occupation } UNION { ?k property:main_subject ?h . ?h rdf:type ontology:occupation . ?k rdf:type ontology:publication } } GROUP BY ?h } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q131512
P180
Q18783400
USER
Which genre of sculpture depicts that occupation ?
(c(Q18783400),P180,Q131512)
action filter_type
action find_reverse
entity Q131512
relation P180
type Q18783400
[{'concept': 'Q18783400'}, 'P180', 'Q131512']
SELECT DISTINCT ?f WHERE { ?f property:P180 resource:Q131512 . ?f rdf:type ontology:Q18783400 }
farmer
action filter_type
action find_reverse
entity farmer
relation depicts
type genre of sculpture
[{'concept': 'genre of sculpture'}, 'depicts', 'farmer']
SELECT DISTINCT ?f WHERE { ?f property:depicts resource:farmer . ?f rdf:type ontology:genre_of_sculpture }
[]
genre of sculpture
Clarification for simple ques.
Q182436
SYSTEM
Did you mean librarian ?
Q316070 Q131512 Q182436
(c(Q18783400),P180,Q316070) (c(Q18783400),P180,Q131512) (c(Q18783400),P180,Q182436)
[ANSWER]
[{'concept': 'Q18783400'}, 'P180', 'Q316070'] [{'concept': 'Q18783400'}, 'P180', 'Q131512'] [{'concept': 'Q18783400'}, 'P180', 'Q182436']
SELECT DISTINCT ?f WHERE { ?f property:P180 resource:Q131512 . ?f rdf:type ontology:Q18783400 }
Fletcher Christian farmer librarian
Did you mean librarian ?
librarian
[{'concept': 'genre of sculpture'}, 'depicts', 'Fletcher Christian'] [{'concept': 'genre of sculpture'}, 'depicts', 'farmer'] [{'concept': 'genre of sculpture'}, 'depicts', 'librarian']
SELECT DISTINCT ?f WHERE { ?f property:depicts resource:farmer . ?f rdf:type ontology:genre_of_sculpture }
[]
Simple Question (Coreferenced)
USER
No, I meant farmer. Could you tell me the answer for that?
(c(Q18783400),P180,Q131512)
Q131512
[{'concept': 'Q18783400'}, 'P180', 'Q131512']
[{'concept': 'genre of sculpture'}, 'depicts', 'farmer']
[]
Q627114
SYSTEM
Worker and Kolkhoz Woman
Q627114
(c(Q18783400),P180,Q131512)
action filter_type
action find_reverse
entity Q131512
relation P180
type Q18783400
[ANSWER] depicts that occupation
[{'concept': 'Q18783400'}, 'P180', 'Q131512']
SELECT DISTINCT ?f WHERE { ?f property:P180 resource:Q131512 . ?f rdf:type ontology:Q18783400 }
Worker and Kolkhoz Woman
Worker and Kolkhoz Woman depicts that occupation
Worker and Kolkhoz Woman
action filter_type
action find_reverse
entity farmer
relation depicts
type genre of sculpture
[{'concept': 'genre of sculpture'}, 'depicts', 'farmer']
SELECT DISTINCT ?f WHERE { ?f property:depicts resource:farmer . ?f rdf:type ontology:genre_of_sculpture }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q490
P47
Q15617994
USER
Which administrative territories are bordered by Milan ?
(Q490,P47,c(Q15617994))
action filter_type
action find
entity Q490
relation P47
type Q15617994
['Q490', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q490 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Milan
action filter_type
action find
entity Milan
relation shares border with
type designation for an administrative territorial entity
['Milan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Milan property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q43005 Q42946 Q42269
SYSTEM
Sesto San Giovanni, Trezzano sul Naviglio, Cusago
Q42974 Q42796 Q42971 Q42794 Q43005 Q42269 Q43028 Q42419 Q42192 Q11494 Q42784 Q42393 Q42399 Q42946 Q42902 Q42906 Q43042 Q42991 Q42898 Q42423 Q42997 Q42996
(Q490,P47,c(Q15617994))
action filter_type
action find
entity Q490
relation P47
type Q15617994
[ANSWERS] are bordered by Milan
['Q490', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q490 property:P47 ?g . ?g rdf:type ontology:Q15617994 }
Cesano Boscone Arese Buccinasco Rozzano Sesto San Giovanni Cusago Peschiera Borromeo Vimodrone San Donato Milanese Baranzate Rho Cormano Novate Milanese Trezzano sul Naviglio Segrate Cologno Monzese Settimo Milanese Assago Bresso Corsico Opera Pero
Sesto San Giovanni, Trezzano sul Naviglio and Cusago are bordered by Milan
Sesto San Giovanni Trezzano sul Naviglio Cusago
action filter_type
action find
entity Milan
relation shares border with
type designation for an administrative territorial entity
['Milan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Milan property:shares_border_with ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]