Simple Question (Direct)
Simple Question
Q142298
P106
Q28640
USER
What is the profession of Cristina Civale ?
(Q142298,P106,c(Q28640))
action filter_type
action find
entity Q142298
relation P106
type Q28640
['Q142298', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?z WHERE { resource:Q142298 property:P106 ?z . ?z rdf:type ontology:Q28640 }
Cristina Civale
action filter_type
action find
entity Cristina Civale
relation occupation
type profession
['Cristina Civale', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?z WHERE { resource:Cristina_Civale property:occupation ?z . ?z rdf:type ontology:profession }
[]
profession
Q28389
SYSTEM
screenwriter
Q28389
(Q142298,P106,c(Q28640))
action filter_type
action find
entity Q142298
relation P106
type Q28640
The profession of Cristina Civale is a [ANSWER]
['Q142298', 'P106', {'concept': 'Q28640'}]
SELECT DISTINCT ?z WHERE { resource:Q142298 property:P106 ?z . ?z rdf:type ontology:Q28640 }
screenwriter
The profession of Cristina Civale is a screenwriter
screenwriter
action filter_type
action find
entity Cristina Civale
relation occupation
type profession
['Cristina Civale', 'occupation', {'concept': 'profession'}]
SELECT DISTINCT ?z WHERE { resource:Cristina_Civale property:occupation ?z . ?z rdf:type ontology:profession }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q28389
P425
Q9332
USER
Who has that profession as the associated field of occupation ?
(Q28389,P425,c(Q9332))
action filter_type
action find
entity Q28389
relation P425
type Q9332
['Q28389', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q9332 . resource:Q28389 property:P425 ?z }
screenwriter
action filter_type
action find
entity screenwriter
relation field of this occupation
type behavior
['screenwriter', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:behavior . resource:screenwriter property:field_of_this_occupation ?z }
[]
behavior
Q3429919
SYSTEM
screenwriting
Q3429919
(Q28389,P425,c(Q9332))
action filter_type
action find
entity Q28389
relation P425
type Q9332
[ANSWER] has that profession as the associated field of occupation
['Q28389', 'P425', {'concept': 'Q9332'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q9332 . resource:Q28389 property:P425 ?z }
screenwriting
Screenwriting has that profession as the associated field of occupation
screenwriting
action filter_type
action find
entity screenwriter
relation field of this occupation
type behavior
['screenwriter', 'field of this occupation', {'concept': 'behavior'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:behavior . resource:screenwriter property:field_of_this_occupation ?z }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q215536 Q28389
P106
Q502895
USER
Which people have the profession as screenwriter and merchant ?
AND((c(Q502895),P106,Q28389), (c(Q502895),P106,Q215536))
action filter_type
action intersection
action find_reverse
entity Q28389
relation P106
action find_reverse
entity Q215536
relation P106
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q28389'], [{'concept': 'Q502895'}, 'P106', 'Q215536']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P106 resource:Q28389 . ?w property:P106 resource:Q215536 }
merchant screenwriter
action filter_type
action intersection
action find_reverse
entity screenwriter
relation occupation
action find_reverse
entity merchant
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'screenwriter'], [{'concept': 'common name'}, 'occupation', 'merchant']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:occupation resource:screenwriter . ?w property:occupation resource:merchant }
[]
common name
Q712878
SYSTEM
Mario Cecchi Gori
Q712878
AND((c(Q502895),P106,Q28389), (c(Q502895),P106,Q215536))
action filter_type
action intersection
action find_reverse
entity Q28389
relation P106
action find_reverse
entity Q215536
relation P106
type Q502895
[ANSWER] have the profession as screenwriter and merchant
{'AND': [[{'concept': 'Q502895'}, 'P106', 'Q28389'], [{'concept': 'Q502895'}, 'P106', 'Q215536']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q502895 . ?w property:P106 resource:Q28389 . ?w property:P106 resource:Q215536 }
Mario Cecchi Gori
Mario Cecchi Gori have the profession as screenwriter and merchant
Mario Cecchi Gori
action filter_type
action intersection
action find_reverse
entity screenwriter
relation occupation
action find_reverse
entity merchant
relation occupation
type common name
{'AND': [[{'concept': 'common name'}, 'occupation', 'screenwriter'], [{'concept': 'common name'}, 'occupation', 'merchant']]}
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:common_name . ?w property:occupation resource:screenwriter . ?w property:occupation resource:merchant }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P20
Q56061
USER
How many administrative territories are the places of death of that person ?
(Q712878,P20,c(Q56061))
action count
action filter_type
action find
entity Q712878
relation P20
type Q56061
['Q712878', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q712878 property:P20 ?y . ?y rdf:type ontology:Q56061 }
action count
action filter_type
action find
entity Mario Cecchi Gori
relation place of death
type administrative territorial entity
['Mario Cecchi Gori', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Mario_Cecchi_Gori property:place_of_death ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q220
(Q712878,P20,c(Q56061))
action count
action filter_type
action find
entity Q712878
relation P20
type Q56061
[ANSWER]
['Q712878', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Q712878 property:P20 ?y . ?y rdf:type ontology:Q56061 }
Rome
1
action count
action filter_type
action find
entity Mario Cecchi Gori
relation place of death
type administrative territorial entity
['Mario Cecchi Gori', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) WHERE { resource:Mario_Cecchi_Gori property:place_of_death ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1884327
P1454
Q2712963 Q1269299 Q28640
USER
Which professions have a legal form of lesser number of abstract nouns and business organizations than Magnetic Fields ?
(c(Q28640),P1454,c(Q2712963)|c(Q1269299))
action less
action union
action find_tuple_counts
relation P1454
type Q28640
type Q2712963
action find_tuple_counts
relation P1454
type Q28640
type Q1269299
action count
action filter_multi_types
action find
entity Q1884327
relation P1454
type Q2712963
type Q1269299
[{'concept': 'Q28640'}, 'P1454', [{'concept': 'Q2712963'}, {'concept': 'Q1269299'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ontology:Q2712963 . ?v rdf:type ontology:Q28640 . ?v property:P1454 ?g } UNION { ?v property:P1454 ?g . ?g rdf:type ontology:Q1269299 . ?v rdf:type ontology:Q28640 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q1884327 property:P1454 ?b . { { ?b rdf:type ontology:Q2712963 } UNION { ?b rdf:type ontology:Q1269299 } } } } . FILTER ( ?h < ?j ) }
Magnetic Fields
action less
action union
action find_tuple_counts
relation legal form
type profession
type abstract noun
action find_tuple_counts
relation legal form
type profession
type type of business entity
action count
action filter_multi_types
action find
entity Magnetic Fields
relation legal form
type abstract noun
type type of business entity
[{'concept': 'profession'}, 'legal form', [{'concept': 'abstract noun'}, {'concept': 'type of business entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ontology:abstract_noun . ?v rdf:type ontology:profession . ?v property:legal_form ?g } UNION { ?v property:legal_form ?g . ?g rdf:type ontology:type_of_business_entity . ?v rdf:type ontology:profession } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Magnetic_Fields property:legal_form ?b . { { ?b rdf:type ontology:abstract_noun } UNION { ?b rdf:type ontology:type_of_business_entity } } } } . FILTER ( ?h < ?j ) }
[]
abstract noun type of business entity profession
Q2271746 Q875485
SYSTEM
Tose Co., Max Design
Q2271746 Q875485
(c(Q28640),P1454,c(Q2712963)|c(Q1269299))
action less
action union
action find_tuple_counts
relation P1454
type Q28640
type Q2712963
action find_tuple_counts
relation P1454
type Q28640
type Q1269299
action count
action filter_multi_types
action find
entity Q1884327
relation P1454
type Q2712963
type Q1269299
[ANSWERS] have a legal form of lesser number of abstract nouns and business organizations than Magnetic Fields
[{'concept': 'Q28640'}, 'P1454', [{'concept': 'Q2712963'}, {'concept': 'Q1269299'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ontology:Q2712963 . ?v rdf:type ontology:Q28640 . ?v property:P1454 ?g } UNION { ?v property:P1454 ?g . ?g rdf:type ontology:Q1269299 . ?v rdf:type ontology:Q28640 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Q1884327 property:P1454 ?b . { { ?b rdf:type ontology:Q2712963 } UNION { ?b rdf:type ontology:Q1269299 } } } } . FILTER ( ?h < ?j ) }
Tose Co. Max Design
Tose Co. and Max Design have a legal form of lesser number of abstract nouns and business organizations than Magnetic Fields
Tose Co. Max Design
action less
action union
action find_tuple_counts
relation legal form
type profession
type abstract noun
action find_tuple_counts
relation legal form
type profession
type type of business entity
action count
action filter_multi_types
action find
entity Magnetic Fields
relation legal form
type abstract noun
type type of business entity
[{'concept': 'profession'}, 'legal form', [{'concept': 'abstract noun'}, {'concept': 'type of business entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?g ) AS ?h ) WHERE { { ?g rdf:type ontology:abstract_noun . ?v rdf:type ontology:profession . ?v property:legal_form ?g } UNION { ?v property:legal_form ?g . ?g rdf:type ontology:type_of_business_entity . ?v rdf:type ontology:profession } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?j ) WHERE { resource:Magnetic_Fields property:legal_form ?b . { { ?b rdf:type ontology:abstract_noun } UNION { ?b rdf:type ontology:type_of_business_entity } } } } . FILTER ( ?h < ?j ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q2271746 Q875485
P452
Q268592
USER
Which industries do those professions belong to ?
(Q2271746,P452,c(Q268592)) (Q875485,P452,c(Q268592))
action filter_type
action find
entity prev_answer
relation P452
type Q268592
['Q2271746', 'P452', {'concept': 'Q268592'}] ['Q875485', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q268592 . ?h property:P452 ?w . VALUES ( ?h ) { ( resource:Q2271746 ) ( resource:Q875485 ) } }
Tose Co. Max Design
action filter_type
action find
entity prev_answer
relation industry
type economic branch
['Tose Co.', 'industry', {'concept': 'economic branch'}] ['Max Design', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:economic_branch . ?h property:industry ?w . VALUES ( ?h ) { ( resource:Tose_Co. ) ( resource:Max_Design ) } }
[]
economic branch
Q941594 Q941594
SYSTEM
video game industry
Q941594 Q941594
(Q2271746,P452,c(Q268592)) (Q875485,P452,c(Q268592))
action filter_type
action find
entity prev_answer
relation P452
type Q268592
Those professions belong to [ANSWER] and [ANSWER]
['Q2271746', 'P452', {'concept': 'Q268592'}] ['Q875485', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q268592 . ?h property:P452 ?w . VALUES ( ?h ) { ( resource:Q2271746 ) ( resource:Q875485 ) } }
video game industry video game industry
Those professions belong to video game industry and video game industry
video game industry video game industry
action filter_type
action find
entity prev_answer
relation industry
type economic branch
['Tose Co.', 'industry', {'concept': 'economic branch'}] ['Max Design', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:economic_branch . ?h property:industry ?w . VALUES ( ?h ) { ( resource:Tose_Co. ) ( resource:Max_Design ) } }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1395742
Q268592
USER
And also tell me about Sirius Software?
(Q1395742,P452,c(Q268592))
action filter_type
action find
entity Q1395742
relation P452
type Q268592
['Q1395742', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?f WHERE { resource:Q1395742 property:P452 ?f . ?f rdf:type ontology:Q268592 }
Sirius Software
action filter_type
action find
entity Sirius Software
relation industry
type economic branch
['Sirius Software', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?f WHERE { resource:Sirius_Software property:industry ?f . ?f rdf:type ontology:economic_branch }
[]
economic branch
Q941594
SYSTEM
video game industry
Q941594
(Q1395742,P452,c(Q268592))
action filter_type
action find
entity Q1395742
relation P452
type Q268592
[ANSWER]
['Q1395742', 'P452', {'concept': 'Q268592'}]
SELECT DISTINCT ?f WHERE { resource:Q1395742 property:P452 ?f . ?f rdf:type ontology:Q268592 }
video game industry
video game industry
action filter_type
action find
entity Sirius Software
relation industry
type economic branch
['Sirius Software', 'industry', {'concept': 'economic branch'}]
SELECT DISTINCT ?f WHERE { resource:Sirius_Software property:industry ?f . ?f rdf:type ontology:economic_branch }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P452
Q9332 Q1269299 Q43229
USER
Which behaviors do atmost 1 business organizations or organizations belong to ?
(c(Q1269299)|c(Q43229),P452,c(Q9332))
action atmost
action union
action find_reverse_tuple_counts
relation P452
type Q9332
type Q1269299
action find_reverse_tuple_counts
relation P452
type Q9332
type Q43229
value 1
[[{'concept': 'Q1269299'}, {'concept': 'Q43229'}], 'P452', {'concept': 'Q9332'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { { ?g property:P452 ?i . ?i rdf:type ontology:Q9332 . ?g rdf:type ontology:Q1269299 } UNION { ?g property:P452 ?i . ?i rdf:type ontology:Q9332 . ?g rdf:type ontology:Q43229 } } GROUP BY ?i } . FILTER ( ?w <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation industry
type behavior
type type of business entity
action find_reverse_tuple_counts
relation industry
type behavior
type organization
value 1
[[{'concept': 'type of business entity'}, {'concept': 'organization'}], 'industry', {'concept': 'behavior'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { { ?g property:industry ?i . ?i rdf:type ontology:behavior . ?g rdf:type ontology:type_of_business_entity } UNION { ?g property:industry ?i . ?i rdf:type ontology:behavior . ?g rdf:type ontology:organization } } GROUP BY ?i } . FILTER ( ?w <= 1 ) }
[]
behavior type of business entity organization
Q648877 Q832237 Q9640723
SYSTEM
post-production, environmental protection, commercial aviation
Q36963 Q815962 Q572824 Q36633 Q11030 Q11771944 Q877729 Q892972 Q648877 Q832237 Q816425 Q455550 Q1043452 Q2695280 Q203605 Q130286 Q2029911 Q9640723 Q127213 Q5057302 Q735 Q830036 Q41399 Q11042 Q131508 Q1571929 Q1415356 Q82604 Q171141 Q336 Q17308314 Q14373 Q1087786 Q7632064
(c(Q1269299)|c(Q43229),P452,c(Q9332))
action atmost
action union
action find_reverse_tuple_counts
relation P452
type Q9332
type Q1269299
action find_reverse_tuple_counts
relation P452
type Q9332
type Q43229
value 1
Atmost 1 business organizations or organizations belong to the [ANSWERS]
[[{'concept': 'Q1269299'}, {'concept': 'Q43229'}], 'P452', {'concept': 'Q9332'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { { ?g property:P452 ?i . ?i rdf:type ontology:Q9332 . ?g rdf:type ontology:Q1269299 } UNION { ?g property:P452 ?i . ?i rdf:type ontology:Q9332 . ?g rdf:type ontology:Q43229 } } GROUP BY ?i } . FILTER ( ?w <= 1 ) }
hunting colonization Cultural heritage management prostitution journalism civil service handicraft book packaging post-production environmental protection surveying camping maintenance, repair, and operations technics carpentry management consulting professional services commercial aviation arboriculture sound recording and reproduction art shopping fire protection culture Enterprise resource planning general aviation film distribution design gastronomy science bellfounding fishing standardization Substance abuse prevention
Atmost 1 business organizations or organizations belong to the post-production, environmental protection and commercial aviation
post-production environmental protection commercial aviation
action atmost
action union
action find_reverse_tuple_counts
relation industry
type behavior
type type of business entity
action find_reverse_tuple_counts
relation industry
type behavior
type organization
value 1
[[{'concept': 'type of business entity'}, {'concept': 'organization'}], 'industry', {'concept': 'behavior'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?w ) ?i WHERE { { ?g property:industry ?i . ?i rdf:type ontology:behavior . ?g rdf:type ontology:type_of_business_entity } UNION { ?g property:industry ?i . ?i rdf:type ontology:behavior . ?g rdf:type ontology:organization } } GROUP BY ?i } . FILTER ( ?w <= 1 ) }
[]