Simple Question (Direct)
Simple Question
Q2036409
P735
Q82799
USER
What is forename of Ab Gietelink ?
(Q2036409,P735,c(Q82799))
action filter_type
action find
entity Q2036409
relation P735
type Q82799
['Q2036409', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q2036409 property:P735 ?k . ?k rdf:type ontology:Q82799 }
Ab Gietelink
action filter_type
action find
entity Ab Gietelink
relation given name
type name
['Ab Gietelink', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Ab_Gietelink property:given_name ?k . ?k rdf:type ontology:name }
[]
name
Q19305440
SYSTEM
Ab
Q19305440
(Q2036409,P735,c(Q82799))
action filter_type
action find
entity Q2036409
relation P735
type Q82799
Forename of [ANSWER] Gietelink is also [ANSWER]
['Q2036409', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?k WHERE { resource:Q2036409 property:P735 ?k . ?k rdf:type ontology:Q82799 }
Ab
Forename of Ab Gietelink is also Ab
Ab
action filter_type
action find
entity Ab Gietelink
relation given name
type name
['Ab Gietelink', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?k WHERE { resource:Ab_Gietelink property:given_name ?k . ?k rdf:type ontology:name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2036409
P21
Q290
USER
What is the sex of Ab Gietelink ?
(Q2036409,P21,c(Q290))
action filter_type
action find
entity Q2036409
relation P21
type Q290
['Q2036409', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2036409 property:P21 ?z . ?z rdf:type ontology:Q290 }
Ab Gietelink
action filter_type
action find
entity Ab Gietelink
relation gender
type sex
['Ab Gietelink', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Ab_Gietelink property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2036409,P21,c(Q290))
action filter_type
action find
entity Q2036409
relation P21
type Q290
The sex of Ab Gietelink is the [ANSWER]
['Q2036409', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2036409 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
The sex of Ab Gietelink is the male
male
action filter_type
action find
entity Ab Gietelink
relation gender
type sex
['Ab Gietelink', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Ab_Gietelink property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2036409
P27
Q15617994
USER
Which administrative territory is Ab Gietelink an inhabitant of ?
(Q2036409,P27,c(Q15617994))
action filter_type
action find
entity Q2036409
relation P27
type Q15617994
['Q2036409', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q2036409 property:P27 ?x }
Ab Gietelink
action filter_type
action find
entity Ab Gietelink
relation country of citizenship
type designation for an administrative territorial entity
['Ab Gietelink', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ab_Gietelink property:country_of_citizenship ?x }
[]
designation for an administrative territorial entity
Q29999
SYSTEM
Kingdom of the Netherlands
Q29999
(Q2036409,P27,c(Q15617994))
action filter_type
action find
entity Q2036409
relation P27
type Q15617994
[ANSWER] is Ab Gietelink an inhabitant of
['Q2036409', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q2036409 property:P27 ?x }
Kingdom of the Netherlands
Kingdom of the Netherlands is Ab Gietelink an inhabitant of
Kingdom of the Netherlands
action filter_type
action find
entity Ab Gietelink
relation country of citizenship
type designation for an administrative territorial entity
['Ab Gietelink', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Ab_Gietelink property:country_of_citizenship ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2036409
P106
Q12737077
USER
What are the professions of Ab Gietelink ?
(Q2036409,P106,c(Q12737077))
action filter_type
action find
entity Q2036409
relation P106
type Q12737077
['Q2036409', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2036409 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Ab Gietelink
action filter_type
action find
entity Ab Gietelink
relation occupation
type occupation
['Ab Gietelink', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Ab_Gietelink property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q1086863 Q36180 Q3387717
SYSTEM
columnist, writer, theatre director
Q1086863 Q36180 Q3387717
(Q2036409,P106,c(Q12737077))
action filter_type
action find
entity Q2036409
relation P106
type Q12737077
The professions of Ab Gietelink are [ANSWERS]
['Q2036409', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q2036409 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
columnist writer theatre director
The professions of Ab Gietelink are columnist, writer and theatre director
columnist writer theatre director
action filter_type
action find
entity Ab Gietelink
relation occupation
type occupation
['Ab Gietelink', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Ab_Gietelink property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P425
Q483394
USER
How many genres have that occupation as thier associated field of occupation ?
(Q1086863,P425,c(Q483394))
['Q1086863', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1086863 property:P425 ?z . ?z rdf:type ontology:Q483394 }
['columnist', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:columnist property:field_of_this_occupation ?z . ?z rdf:type ontology:genre }
[]
genre
Quantitative|Count|Single entity type|Clarification
Q3387717
SYSTEM
Did you mean theatre director ?
(Q1086863,P425,c(Q483394)) (Q36180,P425,c(Q483394)) (Q3387717,P425,c(Q483394))
[ANSWER]
['Q1086863', 'P425', {'concept': 'Q483394'}] ['Q36180', 'P425', {'concept': 'Q483394'}] ['Q3387717', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1086863 property:P425 ?z . ?z rdf:type ontology:Q483394 }
Did you mean theatre director ?
theatre director
['columnist', 'field of this occupation', {'concept': 'genre'}] ['writer', 'field of this occupation', {'concept': 'genre'}] ['theatre director', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:columnist property:field_of_this_occupation ?z . ?z rdf:type ontology:genre }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant columnist. Could you tell me the answer for that?
(Q1086863,P425,c(Q483394))
Q1086863
['Q1086863', 'P425', {'concept': 'Q483394'}]
['columnist', 'field of this occupation', {'concept': 'genre'}]
[]
SYSTEM
1
Q267628
(Q1086863,P425,c(Q483394))
[ANSWER]
['Q1086863', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1086863 property:P425 ?z . ?z rdf:type ontology:Q483394 }
column
1
['columnist', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:columnist property:field_of_this_occupation ?z . ?z rdf:type ontology:genre }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q13219447
Q483394
USER
And what about sports journalist?
(Q13219447,P425,c(Q483394))
action count
action filter_type
action find
entity Q13219447
relation P425
type Q483394
['Q13219447', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q13219447 property:P425 ?k . ?k rdf:type ontology:Q483394 }
sports journalist
action count
action filter_type
action find
entity sports journalist
relation field of this occupation
type genre
['sports journalist', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:sports_journalist property:field_of_this_occupation ?k . ?k rdf:type ontology:genre }
[]
genre
SYSTEM
1
(Q13219447,P425,c(Q483394))
action count
action filter_type
action find
entity Q13219447
relation P425
type Q483394
[ANSWER]
['Q13219447', 'P425', {'concept': 'Q483394'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:Q13219447 property:P425 ?k . ?k rdf:type ontology:Q483394 }
1
action count
action filter_type
action find
entity sports journalist
relation field of this occupation
type genre
['sports journalist', 'field of this occupation', {'concept': 'genre'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?g ) WHERE { resource:sports_journalist property:field_of_this_occupation ?k . ?k rdf:type ontology:genre }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P921
Q12737077 Q732577 Q2342494
USER
Which occupations were the main subjects of max number of publications or collectables 's work ?
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?g ) WHERE { { ?y property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q732577 } UNION { ?y property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } } GROUP BY ?x } } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?t ) WHERE { { ?q property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q732577 } UNION { ?q property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q2342494 } } GROUP BY ?o } }
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?g ) WHERE { { ?y property:main_subject ?x . ?x rdf:type ontology:occupation . ?y rdf:type ontology:publication } UNION { ?y property:main_subject ?x . ?x rdf:type ontology:occupation . ?y rdf:type ontology:collectable } } GROUP BY ?x } } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?t ) WHERE { { ?q property:main_subject ?o . ?o rdf:type ontology:occupation . ?q rdf:type ontology:publication } UNION { ?q property:main_subject ?o . ?o rdf:type ontology:occupation . ?q rdf:type ontology:collectable } } GROUP BY ?o } }
[]
occupation publication collectable
Q16746569
SYSTEM
high school student
Q16746569
(c(Q732577)|c(Q2342494),P921,c(Q12737077))
action argmax
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q2342494
The [ANSWER] was the main subjects of max number of publications or collectables 's work
[[{'concept': 'Q732577'}, {'concept': 'Q2342494'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?g ) WHERE { { ?y property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q732577 } UNION { ?y property:P921 ?x . ?x rdf:type ontology:Q12737077 . ?y rdf:type ontology:Q2342494 } } GROUP BY ?x } } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?t ) WHERE { { ?q property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q732577 } UNION { ?q property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?q rdf:type ontology:Q2342494 } } GROUP BY ?o } }
high school student
The high school student was the main subjects of max number of publications or collectables 's work
high school student
action argmax
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type collectable
[[{'concept': 'publication'}, {'concept': 'collectable'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MAX ( ?g ) AS ?a ) { SELECT DISTINCT ?x ( COUNT ( ?y ) AS ?g ) WHERE { { ?y property:main_subject ?x . ?x rdf:type ontology:occupation . ?y rdf:type ontology:publication } UNION { ?y property:main_subject ?x . ?x rdf:type ontology:occupation . ?y rdf:type ontology:collectable } } GROUP BY ?x } } . FILTER ( ?t = ?a ) . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?t ) WHERE { { ?q property:main_subject ?o . ?o rdf:type ontology:occupation . ?q rdf:type ontology:publication } UNION { ?q property:main_subject ?o . ?o rdf:type ontology:occupation . ?q rdf:type ontology:collectable } } GROUP BY ?o } }
[]